freedreno: fix bogus IMM const reg index
authorRob Clark <robclark@freedesktop.org>
Wed, 24 Apr 2013 21:45:00 +0000 (17:45 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 25 Apr 2013 01:09:46 +0000 (21:09 -0400)
commit49a7624973870289a10b17778709c4c2a676fb12
tree4af201a91c6f90e4285fb01a728ec1fe3be43e52
parent9495ee12c66798ac776f1a38dbb9c7416ba68c6b
freedreno: fix bogus IMM const reg index

We were assigning incorrect const register for immediates, and
potentially writing immediate const to the wrong location.  This fixes
an incorrect-rendering bug with xonotic.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_compiler.c
src/gallium/drivers/freedreno/freedreno_state.c