[Mesa-dev] [PATCH] glsl: Fix loop bounds detection.

Eric Anholt eric at anholt.net
Mon Jan 7 23:23:15 PST 2013


Paul Berry <stereotype441 at gmail.com> writes:

> When analyzing a loop where the loop condition is expressed in the
> non-standard order (e.g. "4 > i" instead of "i < 4"), we were
> reversing the condition incorrectly, leading to a loop bound that was
> off by 1.
>
> Fixes piglit tests {vs,fs}-loop-bounds-unrolled.shader_test.

Hooray, I'm not the only one that can get this wrong.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130107/0d3d4617/attachment.pgp>


More information about the mesa-dev mailing list