r300/compiler: Refactor to allow different instruction types
[mesa.git] / src / mesa / drivers / dri / r300 / compiler / r3xx_fragprog.c
index 614c2e3d24dbc28f6ab816a2a2ef10d46b95b89c..746e4495fe920fb5580392cbf2ee6c04ef79a46b 100644 (file)
@@ -44,7 +44,7 @@ static void rewrite_depth_out(struct r300_fragment_program_compiler * c)
        struct rc_instruction *rci;
 
        for (rci = c->Base.Program.Instructions.Next; rci != &c->Base.Program.Instructions; rci = rci->Next) {
-               struct rc_sub_instruction * inst = &rci->I;
+               struct rc_sub_instruction * inst = &rci->U.I;
 
                if (inst->DstReg.File != RC_FILE_OUTPUT || inst->DstReg.Index != c->OutputDepth)
                        continue;