summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-24 09:59:39 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-24 09:59:39 -0700
commit6c29be9f41470b22c87ef571e10b5a9824800608 (patch)
treee9b9382d08011fd86394bbebacf305114b60ed62 /src
parent47b3afc53f25b1374afe38664c90404bce42ec22 (diff)
i915: add case for TGSI_FILE_IMMEDIATE to avoid error, but still needs proper handling...
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/i915simple/i915_fpc_translate.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/pipe/i915simple/i915_fpc_translate.c b/src/mesa/pipe/i915simple/i915_fpc_translate.c
index d517b88acc..0185512aeb 100644
--- a/src/mesa/pipe/i915simple/i915_fpc_translate.c
+++ b/src/mesa/pipe/i915simple/i915_fpc_translate.c
@@ -200,6 +200,9 @@ src_vector(struct i915_fp_compile *p,
}
break;
+ case TGSI_FILE_IMMEDIATE:
+ /* XXX unfinished - need to append immediates onto const buffer */
+ /* fall-through */
case TGSI_FILE_CONSTANT:
src = UREG(REG_TYPE_CONST, index);
break;
@@ -928,9 +931,7 @@ i915_translate_instructions(struct i915_fp_compile *p,
break;
case TGSI_TOKEN_TYPE_IMMEDIATE:
- /* This is a no-op. We'll get immediates from the usual constant/
- * uniform buffer.
- */
+ /* XXX append the immediate to the const buffer... */
break;
case TGSI_TOKEN_TYPE_INSTRUCTION: