r5xx: Fix typo of epic proportions.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 19 May 2008 06:35:07 +0000 (23:35 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 19 May 2008 06:35:07 +0000 (23:35 -0700)
src/mesa/drivers/dri/r300/r500_fragprog.c

index 65cb62f67b07d1055a05537393e7c7170155fdf2..07b000b4881de96f41f02339b440f8f56872a290 100644 (file)
@@ -343,7 +343,7 @@ static void dumb_shader(struct r500_fragment_program *fp)
 }
 
 static void emit_alu(struct r500_fragment_program *fp, int counter, struct prog_instruction *fpi) {
-       if (fpi->DstReg.Index == PROGRAM_OUTPUT) {
+       if (fpi->DstReg.File == PROGRAM_OUTPUT) {
                fp->inst[counter].inst0 = R500_INST_TYPE_OUT
                        /* output_mask */
                        | (fpi->DstReg.WriteMask << 14);