summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r500_fragprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c
index 65cb62f67b..07b000b488 100644
--- a/src/mesa/drivers/dri/r300/r500_fragprog.c
+++ b/src/mesa/drivers/dri/r300/r500_fragprog.c
@@ -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);