i915: Calculate partial result to temp register first
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 10 Feb 2011 19:48:59 +0000 (11:48 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 10 Feb 2011 21:26:49 +0000 (13:26 -0800)
commit53b8b6884355da3737d1ff714f1fadc69d1745e4
tree13372c867fba56750e4945214c563fe987725b07
parent05a16b8e1cf5f402636ae5f870ed0ae5e250735e
i915: Calculate partial result to temp register first

Previously the SNE and SEQ instructions would calculate the partial
result to the destination register.  This would cause problems if the
destination register was also one of the source registers.

Fixes piglit tests glsl-fs-any, glsl-fs-struct-equal,
glsl-fs-struct-notequal, glsl-fs-vec4-operator-equal,
glsl-fs-vec4-operator-notequal.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/drivers/dri/i915/i915_fragprog.c