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)
committerEric Anholt <eric@anholt.net>
Thu, 7 May 2009 04:44:13 +0000 (21:44 -0700)
commit3d048e57504c63999aeaaf5a65e8e493e6a67ff7
treeb6750c594b8f71bb8b0f136341f5fda3a90cc883
parent156a79f5bd7b3e79f219adf4619ec449a7c0ed1c
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