i965/fs: Fix comparisions with uint negation.
authorEric Anholt <eric@anholt.net>
Mon, 3 Oct 2011 22:12:10 +0000 (15:12 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 20 Oct 2011 16:50:49 +0000 (09:50 -0700)
commit73b0a28ba8b3e2ab917d4c729f34ddbde52c9e88
treef8a61f62ec775c558e3acc2b2a081374f471a13c
parent55c5ad8dfa68c18589f19fba2d1bfecd425785c9
i965/fs: Fix comparisions with uint negation.

The condmod instruction ends up generating garbage condition codes,
because apparently the comparison happens on the accumulator value (33
bits for UD), not the truncated value that would be written.

Fixes fs-op-neg-*

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_emit.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp