summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_ir.h
diff options
context:
space:
mode:
authorBrian <brian@nostromo.localnet.net>2007-01-28 16:11:11 -0700
committerBrian <brian@nostromo.localnet.net>2007-01-28 16:11:11 -0700
commit62e7c033c02149966c00100f3c256e2eb3fc3536 (patch)
treee5d74b04216b9557297f981a28b495e70c723455 /src/mesa/shader/slang/slang_ir.h
parent4de6fac4daecac25bb3f4339610312022b457b46 (diff)
implement mix() with LRP instruction
Diffstat (limited to 'src/mesa/shader/slang/slang_ir.h')
-rw-r--r--src/mesa/shader/slang/slang_ir.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h
index 24ed8e0dc6..5617c56d4b 100644
--- a/src/mesa/shader/slang/slang_ir.h
+++ b/src/mesa/shader/slang/slang_ir.h
@@ -63,6 +63,7 @@ typedef enum
IR_DOT4,
IR_DOT3,
IR_CROSS, /* vec3 cross product */
+ IR_LRP,
IR_MIN,
IR_MAX,
IR_SEQUAL, /* Set if args are equal */
@@ -115,11 +116,12 @@ typedef struct _slang_ir_storage slang_ir_storage;
/**
* Intermediate Representation (IR) tree node
+ * Basically a binary tree, but IR_LRP has three children.
*/
typedef struct slang_ir_node_
{
slang_ir_opcode Opcode;
- struct slang_ir_node_ *Children[2];
+ struct slang_ir_node_ *Children[3];
const char *Comment;
const char *Target;
GLuint Writemask; /**< If Opcode == IR_MOVE */