#define DISASSEM (MESA_VERBOSE & VERBOSE_DISASSEM)
struct mode_opt {
- GLuint Source:4; /**< SRC_x */
- GLuint Operand:3; /**< OPR_x */
+ GLubyte Source:4; /**< SRC_x */
+ GLubyte Operand:3; /**< OPR_x */
};
struct state_key {
GLuint NumArgsRGB:3; /**< up to MAX_COMBINER_TERMS */
GLuint ModeRGB:5; /**< MODE_x */
- struct mode_opt OptRGB[MAX_COMBINER_TERMS];
GLuint NumArgsA:3; /**< up to MAX_COMBINER_TERMS */
GLuint ModeA:5; /**< MODE_x */
+
+ struct mode_opt OptRGB[MAX_COMBINER_TERMS];
struct mode_opt OptA[MAX_COMBINER_TERMS];
} unit[MAX_TEXTURE_UNITS];
};
struct gl_fragment_program *prog;
struct state_key key;
+ printf("SIZE OF KEY %d\n", sizeof(key));
make_state_key(ctx, &key);
prog = (struct gl_fragment_program *)