summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-02 13:49:38 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-02 13:49:38 -0600
commit5e49ec339df1d23b1f1790c49c9f102098f42c0d (patch)
treeeb08d9f45f967b2c203ccc84d209715e17e025e1 /src/mesa/pipe/i915simple
parent4726489248283380c0693ebf4eddbe3015caf8a3 (diff)
Added TGSI_OPCODE_END
Halt program execution when we get to END instruction. The GLSL compiler puts subroutines after the end instruction so we have to stop before then.
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r--src/mesa/pipe/i915simple/i915_fpc_translate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/i915simple/i915_fpc_translate.c b/src/mesa/pipe/i915simple/i915_fpc_translate.c
index 24f21f6633..24bb1d3e2a 100644
--- a/src/mesa/pipe/i915simple/i915_fpc_translate.c
+++ b/src/mesa/pipe/i915simple/i915_fpc_translate.c
@@ -486,6 +486,10 @@ i915_translate_instruction(struct i915_fp_compile *p,
swizzle(src1, ONE, Y, ONE, W), 0);
break;
+ case TGSI_OPCODE_END:
+ /* no-op */
+ break;
+
case TGSI_OPCODE_EX2:
src0 = src_vector(p, &inst->FullSrcRegisters[0]);