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_ir.h | |
parent | c18c75b0b78a7a4391d94864fdd3466a0095342f (diff) |
Replace slang_ir_node::Target w/ Field. Remove Comment field. Clean-up.
Diffstat (limited to 'src/mesa/shader/slang/slang_ir.h')
-rw-r--r-- | src/mesa/shader/slang/slang_ir.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h index ba8b613112d..cd1f6060120 100644 --- a/src/mesa/shader/slang/slang_ir.h +++ b/src/mesa/shader/slang/slang_ir.h @@ -147,13 +147,14 @@ typedef struct slang_ir_node_ { slang_ir_opcode Opcode; struct slang_ir_node_ *Children[3]; - const char *Comment; - const char *Target; /**< Branch target string */ + slang_ir_storage *Store; /**< location of result of this operation */ + GLint InstLocation; /**< Location of instruction emitted for this node */ + + /** special fields depending on Opcode: */ + const char *Field; /**< If Opcode == IR_FIELD */ GLuint Writemask; /**< If Opcode == IR_MOVE */ GLfloat Value[4]; /**< If Opcode == IR_FLOAT */ slang_variable *Var; /**< If Opcode == IR_VAR or IR_VAR_DECL */ - slang_ir_storage *Store; /**< location of result of this operation */ - GLint InstLocation; /**< Location of instruction emitted for this node */ struct slang_ir_node_ *BranchNode; /**< Used for branching instructions */ slang_label *Label; /**< Used for branches */ } slang_ir_node; |