From f9d734c309ca044fc70dc79eafe32b12460d65c0 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 3 Feb 2010 18:56:40 +1000 Subject: r300: fix compiler bugs introduced with MRT changes. the first looks like a definite bug, the second I'm not so confident of but it works. Signed-off-by: Dave Airlie --- src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/r300/compiler') diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c b/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c index 80cc5ffe95..fff5b0c217 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c +++ b/src/mesa/drivers/dri/r300/compiler/radeon_pair_translate.c @@ -208,8 +208,8 @@ static void set_pair_instruction(struct r300_fragment_program_compiler *c, } else { for (i = 0; i < 4; i++) { if (inst->DstReg.Index == c->OutputColor[i]) { - pair->RGB.Target = inst->DstReg.Index; - pair->Alpha.Target = inst->DstReg.Index; + pair->RGB.Target = i; + pair->Alpha.Target = i; pair->RGB.OutputWriteMask |= inst->DstReg.WriteMask & RC_MASK_XYZ; pair->Alpha.OutputWriteMask |= -- cgit v1.2.3