Make ARB_vp backends happy with nv arl
authorAapo Tahkola <aet@rasterburn.org>
Fri, 24 Mar 2006 16:35:08 +0000 (16:35 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Fri, 24 Mar 2006 16:35:08 +0000 (16:35 +0000)
src/mesa/shader/nvvertparse.c

index accf6a36497b38b0d53304ce84d3fbda73ce2e54..71d5116b3efd31837c401db1db6a2c49c64b4a60 100644 (file)
@@ -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;