summaryrefslogtreecommitdiff
path: root/configs/hpux10-static
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-07-22 14:05:52 -0700
committerIan Romanick <ian.d.romanick@intel.com>2011-07-25 18:58:24 -0700
commitdd3bb731532410c9045b0aafe2a6da3f124a9478 (patch)
tree42c050b34a625d2aa99dcea6623d077232a306b6 /configs/hpux10-static
parent0167c8556218713397b4e5c84acbafa7529d665f (diff)
i965: vs optimization fix: Check val.{negate,abs} in accumulator_contains()
When emitting a MAC instruction in a vertex shader, brw_vs_emit() calls accumulator_contains() to determine whether the accumulator already contains the appropriate addend; if it does, then we can avoid emitting an unnecessary MOV instruction. However, accumulator_contains() wasn't checking the val.negate or val.abs flags. As a result, if the desired value was the negation, or the absolute value, of what was already in the accumulator, we would generate an incorrect shader. Fixes piglit test vs-refract-vec4-vec4-float. Tested on Gen5 and Gen6. Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit d92463d5dc42aca09a54588c322fc60582cf9131)
Diffstat (limited to 'configs/hpux10-static')
0 files changed, 0 insertions, 0 deletions