diff options
author | Brian <brian@yutani.localnet.net> | 2007-02-02 11:32:59 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-02-02 11:32:59 -0700 |
commit | e53ec3a862692218437dcdb647e5b88ba68ee05e (patch) | |
tree | 6060ff1ac9b9cc218a32b934dca097d70c69a283 /src/mesa/shader/slang/slang_codegen.c | |
parent | 6147ccba630f42a76666d72ef0425c5166bc4018 (diff) |
try to simplify variable initializers
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index ee1d6cbabc..8631c9a21e 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1891,9 +1891,7 @@ _slang_gen_declaration(slang_assemble_ctx *A, slang_operation *oper) RETURN_ERROR2("Undefined variable:", varName, 0); } /* XXX make copy of this initializer? */ - - /* XXX try to simplify initializer here */foo - + _slang_simplify(v->initializer, &A->space, A->atoms); rhs = _slang_gen_operation(A, v->initializer); assert(rhs); init = new_node(IR_MOVE, var, rhs); |