1 struct texture_stage_op
3 unsigned int carg1
, carg2
, carg0
;
4 unsigned int aarg1
, aarg2
, aarg0
;
8 static const char *debug_register(unsigned int reg
) {
10 case 0x8921: return "GL_REG_0_ATI";
11 case 0x8923: return "GL_REG_2_ATI";
12 case 0x0: return "GL_ZERO";
13 case 0x1: return "GL_ONE";
14 default: return "Unknown register\n";
18 static unsigned int find_tmpreg(struct texture_stage_op op
[8]) {
22 for(i
= 0; i
< 8; i
++) {
23 if(op
[i
].carg1
== 0x00000002 ) {
28 for(i
= 1; i
< 6; i
++) {
36 extern f(const char*);
39 struct texture_stage_op op
[8];
40 unsigned int tmparg
= find_tmpreg(op
);
43 if(tmparg
== 0x0) return;
45 f(debug_register(dstreg
));