summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2006-03-24 16:35:08 +0000
committerAapo Tahkola <aet@rasterburn.org>2006-03-24 16:35:08 +0000
commited4ab13cefce0eb403180b497a6552f1040984a2 (patch)
tree047f3e86961eefcca9c9eb0792cf29f40c637670
parentaf8d39861de25fc8af1a173b197eef9ee88b48a5 (diff)
downloadexternal_mesa3d-ed4ab13cefce0eb403180b497a6552f1040984a2.zip
external_mesa3d-ed4ab13cefce0eb403180b497a6552f1040984a2.tar.gz
external_mesa3d-ed4ab13cefce0eb403180b497a6552f1040984a2.tar.bz2
Make ARB_vp backends happy with nv arl
-rw-r--r--src/mesa/shader/nvvertparse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c
index accf6a3..71d5116 100644
--- a/src/mesa/shader/nvvertparse.c
+++ b/src/mesa/shader/nvvertparse.c
@@ -978,6 +978,11 @@ Parse_AddressInstruction(struct parse_state *parseState, struct prog_instruction
inst->Opcode = OPCODE_ARL;
inst->StringPos = parseState->curLine - parseState->start;
+ /* Make ARB_vp backends happy */
+ inst->DstReg.File = PROGRAM_ADDRESS;
+ inst->DstReg.WriteMask = WRITEMASK_X;
+ inst->DstReg.Index = 0;
+
/* dest A0 reg */
if (!Parse_AddrReg(parseState))
RETURN_ERROR;