[Bug 111071] SPIR-V shader processing fails with message about "extra dangling SSA sources"
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 10 22:25:21 UTC 2019
https://bugs.freedesktop.org/show_bug.cgi?id=111071
--- Comment #4 from Jason Ekstrand <jason at jlekstrand.net> ---
Also, are you sure that test is correct? It's doing
> void main()
> {
> _GLF_color = vec4(1.0, 0.0, 0.0, 1.0);
> for(
> int i = 0;
> i < 10;
> i ++
> )
> {
> _GLF_color = vec4(1.0);
> if(1.0 > injectionSwitch.y)
> {
> _GLF_color = vec4(1.0, 0.0, 0.0, 1.0);
> if(true)
> {
> return;
> }
> }
> }
> }
but the input data it sets up has injectionSwitch.y == 1.0 so the if will fail
because 1.0 > 1.0 is false and so _GLF_color will get overwritten to vec4(1.0)
and never written back to red. Our compiler seems to be compiling it
correctly.
--
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/20190710/fe4cac0b/attachment.html>
More information about the intel-3d-bugs
mailing list