projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baa7ff4
)
st/mesa: implement indirect addressing for destination registers
author
Brian Paul
<brianp@vmware.com>
Fri, 10 Jul 2009 19:07:45 +0000
(13:07 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 10 Jul 2009 19:09:09 +0000
(13:09 -0600)
src/mesa/state_tracker/st_mesa_to_tgsi.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_mesa_to_tgsi.c
b/src/mesa/state_tracker/st_mesa_to_tgsi.c
index 8aef3fc6dcf597c29e3b964ea5cabe2a06f55f05..e150dff9bbcfb16087a1280cfec17b1267da6649 100644
(file)
--- a/
src/mesa/state_tracker/st_mesa_to_tgsi.c
+++ b/
src/mesa/state_tracker/st_mesa_to_tgsi.c
@@
-268,6
+268,11
@@
compile_instruction(
NULL,
GL_FALSE );
fulldst->DstRegister.WriteMask = convert_writemask( inst->DstReg.WriteMask );
+ if (inst->DstReg.RelAddr) {
+ fulldst->DstRegister.Indirect = 1;
+ fulldst->DstRegisterInd.File = TGSI_FILE_ADDRESS;
+ fulldst->DstRegisterInd.Index = 0;
+ }
for (i = 0; i < fullinst->Instruction.NumSrcRegs; i++) {
GLuint j;