diff options
author | Brian <brian@yutani.localnet.net> | 2007-02-20 16:56:49 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-02-20 16:56:49 -0700 |
commit | 760c114b24fd679bb5c5d386c5935f53ef03e8e5 (patch) | |
tree | 3fce0ba95f817842a89c950bb587b266ca7b3186 /src/mesa/shader/slang/slang_codegen.c | |
parent | 10f42ddb9ea75fcce05d5777e8c64cdf42152ff2 (diff) |
alloc IR_FIELD's Storage in codegen, like IR_ELEMENT
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index a23d4e16d0..789ab8a50b 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -2184,12 +2184,16 @@ _slang_gen_field(slang_assemble_ctx * A, slang_operation *oper) /* oper->children[0] is the base */ /* oper->a_id is the field name */ slang_ir_node *base, *n; + GLint size = 4; /* XXX fix? */ base = _slang_gen_operation(A, &oper->children[0]); n = new_node1(IR_FIELD, base); if (n) { n->Target = (char *) oper->a_id; + n->Store = _slang_new_ir_storage(base->Store->File, + base->Store->Index, + size); } return n; |