[Bug 84004] Bizarre vertex shader results (warped geometry) unless a never executed if-branch is added.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 17 08:23:22 PDT 2014


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

--- Comment #3 from Luca Deltodesco <delta_luca at hotmail.com> ---
For quick referenece, the work-around in each case for the 3 vertex shaders
consists of:


if (distance < -10.0)
{
   devicePos = 0.0;
}


where distance is a local variable resulting from a call to length(_) ( and so
can never be less than -10.0) and devicePos is another local variable used
later in the function. The particular choice was not important, only that our
compile step to GLSL from CG did not strip the if-branch from the code.

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


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