From e64030060292cdab97096ee3924ef18b1f71111f Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 4 Jan 2007 14:40:02 -0700 Subject: initial code to get texture sampling limping along --- src/mesa/shader/slang/slang_ir.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (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 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; -- cgit v1.2.3