[Mesa-dev] [Bug 62357] llvmpipe: Fragment Shader with "return" in main causes back output

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 15 17:43:33 PDT 2013


--- Comment #11 from Roland Scheidegger <sroland at vmware.com> ---
Created attachment 76596
  --> https://bugs.freedesktop.org/attachment.cgi?id=76596&action=edit
another testcase

Here's another test case. With this one you can actually see if both the early
exit and the code after the if are executed properly (as it outputs green on
odd pixels and pink on even ones).
(Requires glsl 1.30 though now.)
Succeeds with softpipe.
With unpatched llvmpipe (that one definitely can't work), it fails on the pink
pixels (as it never executes the code after the ret, hence it outputs
green/black pattern).
With the patch, it will fail on the green pixels (outputs a solid pink - this
is less obvious why...).

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130316/d3e0ce48/attachment.html>

More information about the mesa-dev mailing list