OSDN Git Service

i965: Remove bad constant buffer constant-reg-already-loaded optimization.
authorEric Anholt <eric@anholt.net>
Thu, 7 May 2009 04:44:13 +0000 (21:44 -0700)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 4 Jul 2009 13:32:56 +0000 (15:32 +0200)
commitc30f23c1231e8443e0880efa5326ccecf6eec034
tree43b5e898959d9d8c358a1d4d538304d71991a72a
parent94e1117c9ba259665cd8e790369dcd4c789a2f93
i965: Remove bad constant buffer constant-reg-already-loaded optimization.

Thanks to branching, the state of c->current_const[i].index at the point
of emitting constant loads for this instruction may not match the actual
constant currently loaded in the reg at runtime.  Fixes a regression in my
GLSL program for idr's class since b58b3a786aa38dcc9d72144c2cc691151e46e3d5.
src/mesa/drivers/dri/i965/brw_wm_glsl.c