From ed4ab13cefce0eb403180b497a6552f1040984a2 Mon Sep 17 00:00:00 2001 From: Aapo Tahkola Date: Fri, 24 Mar 2006 16:35:08 +0000 Subject: Make ARB_vp backends happy with nv arl --- src/mesa/shader/nvvertparse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c index accf6a3649..71d5116b3e 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; -- cgit v1.2.3