Module: Mesa Branch: mesa_7_5_branch Commit: 762c1d11ffbb5179e44117397559e7cc2dfe9cef URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=762c1d11ffbb5179e44117397559e7cc2dfe9cef
Author: Brian Paul <[email protected]> Date: Fri Jul 10 13:07:45 2009 -0600 st/mesa: implement indirect addressing for destination registers --- src/mesa/state_tracker/st_mesa_to_tgsi.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 8aef3fc..e150dff 100644 --- 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
