summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian <brian@nostromo.localnet.net>2007-02-16 08:58:42 -0700
committerBrian <brian@nostromo.localnet.net>2007-02-16 08:58:42 -0700
commitd003877c669414474fbe00ca423ebbb462939529 (patch)
tree0e08b104a69ab4dc062ab44d464a7482b80f0a87 /src/mesa/shader/slang
parented490e4643f4b20b2b4b745f0285e32d099663a0 (diff)
implement IR_I_TO_F
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_emit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index b15d7372a7..955f428b95 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -1394,6 +1394,12 @@ emit(slang_var_table *vt, slang_ir_node *n, struct gl_program *prog)
case IR_SWIZZLE:
return emit_swizzle(vt, n, prog);
+ case IR_I_TO_F:
+ {
+ n->Store = n->Children[0]->Store;
+ }
+ return NULL;
+
/* Simple arithmetic */
/* unary */
case IR_RSQ:
@@ -1401,7 +1407,6 @@ emit(slang_var_table *vt, slang_ir_node *n, struct gl_program *prog)
case IR_FLOOR:
case IR_FRAC:
case IR_F_TO_I:
- case IR_I_TO_F:
case IR_ABS:
case IR_SIN:
case IR_COS: