[Mesa-dev] [PATCH] i965: Fix computation of abs(-x) in FS

Eric Anholt eric at anholt.net
Mon Oct 10 10:51:03 PDT 2011


On Fri,  7 Oct 2011 12:25:55 -0700, Paul Berry <stereotype441 at gmail.com> wrote:
> When updating a register reference to reflect the fact that we were
> taking its absolute value, the fragment shader back-end failed to
> clear the negate flag, resulting in abs(-x) getting computed as
> -abs(x).
> 
> I also found (and fixed) a similar problem in brw_eu.h, but I'm not
> aware of an actual manifestation of that problem.
> 
> Fixes piglit test glsl-fs-abs-neg-with-intermediate.

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/20111010/c7fe7dc3/attachment.pgp>


More information about the mesa-dev mailing list