summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/nvvertparse.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-04-18 00:11:49 -0700
committerVinson Lee <vlee@vmware.com>2010-04-18 00:11:49 -0700
commit4e98116c234c25119c1a3a0c0a138ada2ab69906 (patch)
tree62cef20ca7853f990a0ba2d0102d378ce77fa109 /src/mesa/shader/nvvertparse.c
parent4485dd8a3e8aff8d4fb73684d0d7a5a1179f60cc (diff)
downloadexternal_mesa3d-4e98116c234c25119c1a3a0c0a138ada2ab69906.zip
external_mesa3d-4e98116c234c25119c1a3a0c0a138ada2ab69906.tar.gz
external_mesa3d-4e98116c234c25119c1a3a0c0a138ada2ab69906.tar.bz2
glsl: Fix handling of OPCODE_PRINT for no registers case.
A register file value is unsigned so could never be -1. A value of 0 also aliased to PROGRAM_TEMPORARY. If an OPCODE_PRINT has no registers to print, set the register file value to PROGRAM_UNDEFINED and check for that value when executing this instruction.
Diffstat (limited to 'src/mesa/shader/nvvertparse.c')
-rw-r--r--src/mesa/shader/nvvertparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c
index 631b315..7332fc4 100644
--- a/src/mesa/shader/nvvertparse.c
+++ b/src/mesa/shader/nvvertparse.c
@@ -1096,7 +1096,7 @@ Parse_PrintInstruction(struct parse_state *parseState, struct prog_instruction *
}
}
else {
- srcReg->File = 0;
+ srcReg->File = PROGRAM_UNDEFINED;
}
/* semicolon */