[Mesa-dev] [Bug 99919] Wrong and unstable image rendering from GLSL fragment shaders

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Feb 24 19:47:55 UTC 2017


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

--- Comment #2 from Ilia Mirkin <imirkin at alum.mit.edu> ---
Created attachment 129905
  --> https://bugs.freedesktop.org/attachment.cgi?id=129905&action=edit
apitrace of variant shader

For convenience, attaching a trace of the variant.

Very surprising that this breaks... the diff between shaders is

--- large-v100-webgl-9803840f5a05935c_inv_variant_77/original.frag     
2017-02-23 05:18:29.000000000 -0500
+++ large-v100-webgl-9803840f5a05935c_inv_variant_77/variant.frag      
2017-02-23 05:18:58.000000000 -0500
@@ -67,12 +70,18 @@
         }
     else
         {
+            for(int i = 0; i < 1; i++) {
             if((s2.x < s1.x || s1.x <= 0.0) && s2.x > 0.0)
                 {
                     hd.c = ca.y;
+                    if(injectionSwitch.x > injectionSwitch.y)
+                        {
+                            break;
+                        }
                     hd.d = s2.x;
                     hd.n = s2.yzw;
                 }
+            }
         }
     return hd;
 }

(and injectionSwitch is set to 0,1 so that should never be true)

Tested on a SKL GT2, so it's not just some weird SNB problem.

-- 
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/mesa-dev/attachments/20170224/cccc63a9/attachment-0001.html>


More information about the mesa-dev mailing list