summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_ir.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-04 14:40:02 -0700
committerBrian <[email protected]>2007-01-04 14:40:02 -0700
commite64030060292cdab97096ee3924ef18b1f71111f (patch)
tree3b016885f7d2e678f8d22b54defcbf1b67c9db90 /src/mesa/shader/slang/slang_ir.h
parent6a92d98d1a04629c09fae59585d94203580434c4 (diff)
initial code to get texture sampling limping along
Diffstat (limited to 'src/mesa/shader/slang/slang_ir.h')
-rw-r--r--src/mesa/shader/slang/slang_ir.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h
index 405d799315d..b43ff1db618 100644
--- a/src/mesa/shader/slang/slang_ir.h
+++ b/src/mesa/shader/slang/slang_ir.h
@@ -79,6 +79,8 @@ typedef enum
IR_NOT, /* logical not */
IR_VAR, /* variable reference */
IR_VAR_DECL,/* var declaration */
+ IR_TEX, /* texture lookup */
+ IR_TEXB, /* texture lookup with LOD bias */
IR_FLOAT,
IR_FIELD,
IR_I_TO_F
@@ -106,10 +108,11 @@ typedef struct slang_ir_node_
const char *Comment;
const char *Target;
GLuint Swizzle;
- GLuint Writemask; /**< If Op == IR_MOVE */
- GLfloat Value[4]; /**< If Op == IR_FLOAT */
+ GLuint Writemask; /**< If Opcode == IR_MOVE */
+ GLfloat Value[4]; /**< If Opcode == IR_FLOAT */
slang_variable *Var;
slang_ir_storage *Store;
+ GLuint TexTarget; /**< If Opcode == IR_TEX or IR_TEXB */
} slang_ir_node;