From 62e7c033c02149966c00100f3c256e2eb3fc3536 Mon Sep 17 00:00:00 2001 From: Brian Date: Sun, 28 Jan 2007 16:11:11 -0700 Subject: implement mix() with LRP instruction --- src/mesa/shader/slang/slang_ir.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/shader/slang/slang_ir.h') diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h index 24ed8e0..5617c56 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 */ -- cgit v1.1