[Bug 99465] vtn_vector_construct writing out of bounds when given multiple non-zero length sources

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 7 05:09:09 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99465

--- Comment #3 from Jason Ekstrand <jason at jlekstrand.net> ---
Created attachment 129377
  --> https://bugs.freedesktop.org/attachment.cgi?id=129377&action=edit
Invalid SPIR-V shader

I've attached the invalid shader.  The second OpCompositeConstruct in the
shader violates the SPIR-V spec in two ways.  It constructs a vec2 from a
single vec3 but

> When constructing a vector, the total number of components in all the operands
> must equal the number of components in Result Type.

and

> When constructing a vector, there must be at least two Constituent operands.

Yes, we could make our SPIR-V parser handle this and it might be useful for
debugging purposes, but it's definitely invalid and needs to be fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170207/c2ff39ee/attachment.html>


More information about the intel-3d-bugs mailing list