diff options
author | Brian Paul <[email protected]> | 2003-03-14 15:40:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-03-14 15:40:59 +0000 |
commit | f386f73f9e4054a750d453fa2f5449c2f1d2e242 (patch) | |
tree | 5ced5cfb6cb7f5006cc67618dac6eb83bdf93e4d /src/mesa/main/nvfragprog.h | |
parent | a2da1155c285fde2a5e5824d50ee8a57c6e982f5 (diff) |
Clean-up of parser error handling/reporting.
Basic fragment program texture instructions are limping along.
Diffstat (limited to 'src/mesa/main/nvfragprog.h')
-rw-r--r-- | src/mesa/main/nvfragprog.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/mesa/main/nvfragprog.h b/src/mesa/main/nvfragprog.h index d7ef8d42485..d7e23627a42 100644 --- a/src/mesa/main/nvfragprog.h +++ b/src/mesa/main/nvfragprog.h @@ -1,4 +1,4 @@ -/* $Id: nvfragprog.h,v 1.3 2003/02/23 04:09:21 brianp Exp $ */ +/* $Id: nvfragprog.h,v 1.4 2003/03/14 15:40:59 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -49,7 +49,7 @@ #define FP_DUMMY_REG_END (FP_DUMMY_REG_START + MAX_NV_FRAGMENT_PROGRAM_WRITE_ONLYS - 1) - +/* condition codes */ #define COND_GT 1 /* greater than zero */ #define COND_EQ 2 /* equal to zero */ #define COND_LT 3 /* less than zero */ @@ -61,6 +61,12 @@ #define COND_FL 9 /* always false */ +/* instruction precision */ +#define FLOAT32 0x1 +#define FLOAT16 0x2 +#define FIXED12 0x4 + + enum fp_opcode { FP_OPCODE_ADD = 1000, FP_OPCODE_COS, @@ -139,9 +145,9 @@ struct fp_instruction struct fp_dst_register DstReg; GLboolean Saturate; GLboolean UpdateCondRegister; - GLuint Precision; /* SINGLE, HALF or FIXED */ - GLuint TexSrcUnit; /* texture unit for TEX, TXD, TXP instructions */ - GLuint TexSrcIndex; /* texture target for TEX, TXD, TXP instructions */ + GLubyte Precision; /* FLOAT32, FLOAT16 or FIXED12 */ + GLubyte TexSrcUnit; /* texture unit for TEX, TXD, TXP instructions */ + GLubyte TexSrcBit; /* TEXTURE_1D,2D,3D,CUBE,RECT_BIT source target */ }; |