[Bug 105271] WebGL2 shader crashes i965_dri.so 17.3.3

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 28 05:31:47 UTC 2018


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

--- Comment #10 from Jason Ekstrand <jason at jlekstrand.net> ---
Getting a division by zero in constant propagation is trivial.  All we would
have to do is write a simple shader_runner test.  Getting it to only trigger in
NIR would be a bit trickier, but I think it could be done.  Now that NIR is the
only thing doing loop unrolling, we could do something like this:

int j = 0;
for (int i = 0; i < 4; i++)
   j += 42/i;

gl_FragColor.x = 255.0f / float(i);

That should do the trick.

-- 
You are receiving this mail because:
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/20180228/e45e1f45/attachment.html>


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