summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-12-23 20:24:46 -0800
committerKenneth Graunke <[email protected]>2011-12-27 14:33:38 -0800
commit07ee9f374f2946f852896e9264c7fa83eafc3f16 (patch)
treeed1587848cfaf737542a990ae537e938bd18c4f8 /src/mesa/tnl
parent443c8d1ab7ddad9392046e041e4e9a4fda7cd6e7 (diff)
i965/vs: Properly clear cur_value when propagating direct copies.
Consider the following code: MOV A.x, B.x MOV B.x, C.x After the first line, cur_value[A][0] == B, indicating that A.x's current value came from register B. When processing the second line, we update cur_value[B][0] to C. However, for drect copies, we fail to reset cur_value[A][0] to NULL. This is necessary because the value of A is no longer the value of B. Fixes Counter-Strike: Source in Wine (where the menu rendered completely black in DX9 mode), completely white textures in Civilization V, and the new Piglit test glsl-vs-copy-propagation-1.shader_test. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42032 Tested-by: Matt Turner <[email protected]> Tested-by: Christopher James Halse Rogers <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/tnl')
0 files changed, 0 insertions, 0 deletions