diff options
author | Brian <[email protected]> | 2007-02-23 09:42:11 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-23 09:42:11 -0700 |
commit | 75d4ed968d48d95c274a5965cc19b13a0e47ef9f (patch) | |
tree | 7ef1851670badb930d4ce28064f80617f7fc69e0 /src/mesa/shader/slang/slang_emit.c | |
parent | c18c75b0b78a7a4391d94864fdd3466a0095342f (diff) |
Replace slang_ir_node::Target w/ Field. Remove Comment field. Clean-up.
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.c')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index 6b950debf4c..764b5f61385 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -285,14 +285,14 @@ slang_print_ir(const slang_ir_node *n, int indent) slang_print_ir(n->Children[0], indent + 3); break; case IR_JUMP: - printf("JUMP %s\n", n->Target); + printf("JUMP %s\n", n->Label->Name); break; case IR_CJUMP0: - printf("CJUMP0 %s\n", n->Target); + printf("CJUMP0 %s\n", n->Label->Name); slang_print_ir(n->Children[0], indent+3); break; case IR_CJUMP1: - printf("CJUMP1 %s\n", n->Target); + printf("CJUMP1 %s\n", n->Label->Name); slang_print_ir(n->Children[0], indent+3); break; @@ -365,7 +365,7 @@ slang_print_ir(const slang_ir_node *n, int indent) (void*) n->Store); break; case IR_FIELD: - printf("FIELD %s of\n", n->Target); + printf("FIELD %s of\n", n->Field); slang_print_ir(n->Children[0], indent+3); break; case IR_FLOAT: @@ -842,7 +842,6 @@ emit_negation(slang_var_table *vt, slang_ir_node *n, struct gl_program *prog) storage_to_dst_reg(&inst->DstReg, n->Store, n->Writemask); storage_to_src_reg(&inst->SrcReg[0], n->Children[0]->Store); inst->SrcReg[0].NegateBase = NEGATE_XYZW; - inst->Comment = n->Comment; return inst; } |