i965/vs: Fix comparisons with uint negation.
authorEric Anholt <eric@anholt.net>
Mon, 3 Oct 2011 22:31:52 +0000 (15:31 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 20 Oct 2011 16:51:58 +0000 (09:51 -0700)
commit31874f074c2eaf2a9421c57f0798c79078d296c4
tree41905cde73ef94eec85324c18f223d1150d1d1b9
parent73b0a28ba8b3e2ab917d4c729f34ddbde52c9e88
i965/vs: Fix comparisons 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 vs-op-neg-*

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp