X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fshader%2Fslang%2Fslang_ir.h;h=273964a8f06fe57e2588fd6378d8b1a3307efa5e;hb=42153d7858686cfd88e919c0889a56d3a13a603e;hp=188d7d96d34b24bc9af7fdc7718e8b674d9af06b;hpb=2cc7dba718aa45ce446c63cf9a64cb88b1a3c39f;p=mesa.git diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h index 188d7d96d34..273964a8f06 100644 --- a/src/mesa/shader/slang/slang_ir.h +++ b/src/mesa/shader/slang/slang_ir.h @@ -24,7 +24,7 @@ /** * \file slang_ir.h - * Mesa GLSL Itermediate Representation tree types and constants. + * Mesa GLSL Intermediate Representation tree types and constants. * \author Brian Paul */ @@ -69,15 +69,19 @@ typedef enum IR_EXP2, /* 2^x */ IR_LOG2, /* log base 2 */ IR_RSQ, /* 1/sqrt() */ - IR_RCP, /* recipricol */ + IR_RCP, /* reciprocol */ IR_FLOOR, IR_FRAC, - IR_ABS, + IR_ABS, /* absolute value */ + IR_NEG, /* negate */ IR_SIN, /* sine */ IR_COS, /* cosine */ 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_TEXP, /* texture lookup with projection */ IR_FLOAT, IR_FIELD, IR_I_TO_F @@ -105,8 +109,8 @@ 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; } slang_ir_node;