[Piglit] [PATCH] Add tests for abs(-x) with intermediate.

Eric Anholt eric at anholt.net
Mon Oct 10 10:48:16 PDT 2011


On Fri,  7 Oct 2011 12:24:14 -0700, Paul Berry <stereotype441 at gmail.com> wrote:
> These tests exercise a bug I found in the Mesa i965 fragment shader:
> when computing abs(-x), if the intermediate value (-x) was used
> elsewhere in the shader, then abs(-x) was incorrectly computed as
> -abs(x).  The failure did not occur if the intermediate value was not
> used, so this bug was not caught by the
> glsl-{fs,vs}-abs-neg.shader_test.

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/piglit/attachments/20111010/1442b21b/attachment.pgp>


More information about the Piglit mailing list