summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-02 13:40:09 +0000
committerBrian Paul <[email protected]>2005-09-02 13:40:09 +0000
commit8cdf3729468aefb7c67c8ecd32fd850adbf6d351 (patch)
tree290a32ac84ad10388f44e4c183de999b53588329 /src
parent350a1676357301f3d103b6d16d01c766644bf872 (diff)
replace -1 with PROGRAM_UNDEFINED when initializing instructions
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/nvfragparse.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/shader/nvfragparse.c b/src/mesa/shader/nvfragparse.c
index f7e10b82425..c967b81c684 100644
--- a/src/mesa/shader/nvfragparse.c
+++ b/src/mesa/shader/nvfragparse.c
@@ -1237,8 +1237,7 @@ Parse_PrintInstruction(struct parse_state *parseState,
}
}
else {
- /* File = 0 indicates no register to print */
- inst->SrcReg[0].File = -1;
+ inst->SrcReg[0].File = PROGRAM_UNDEFINED;
}
inst->SrcReg[0].Swizzle = SWIZZLE_NOOP;
@@ -1260,10 +1259,10 @@ Parse_InstructionSequence(struct parse_state *parseState,
GLubyte token[100];
/* Initialize the instruction */
- inst->SrcReg[0].File = (enum register_file) -1;
- inst->SrcReg[1].File = (enum register_file) -1;
- inst->SrcReg[2].File = (enum register_file) -1;
- inst->DstReg.File = (enum register_file) -1;
+ inst->SrcReg[0].File = PROGRAM_UNDEFINED;
+ inst->SrcReg[1].File = PROGRAM_UNDEFINED;
+ inst->SrcReg[2].File = PROGRAM_UNDEFINED;
+ inst->DstReg.File = PROGRAM_UNDEFINED;
inst->DstReg.CondSwizzle = SWIZZLE_NOOP;
inst->Data = NULL;