OSDN Git Service

i915: fix broken indirect constant buffer reads
authorBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 22:01:20 +0000 (16:01 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 22:10:26 +0000 (16:10 -0600)
commit0bc214a834bbb12b9338837dd9fca9bc389b4bc2
treedae0e75640161a523fd45fc772599a5f8ecac6b1
parent905130852ac481cb286b0215d8c61e9eb6845520
i915: fix broken indirect constant buffer reads

The READ message's msg_control value can be 0 or 1 to indicate that the
Oword should be read into the lower or upper half of the target register.
It seems that the other half of the register gets clobbered though.  So
we read into two dest registers then use a MOV to combine the upper/lower
halves.
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_vs_emit.c