summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2011-03-20 00:09:30 -0700
committerTom Stellard <[email protected]>2011-04-30 11:00:15 -0700
commitdbac75fa2f8495c879d841803b494e7411427863 (patch)
treee13e0838571d1ca280dfc627da716ce84967fffe /src
parent4f4d1d06da5e151df39c60fe75ab686ffdd73659 (diff)
r300/compiler: Use RC_MASK_W when converting RGB to Alpha instructions
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c b/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c
index 3743b0239d4..25cd52c9cd4 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c
@@ -709,7 +709,7 @@ static int convert_rgb_to_alpha(
pair_inst->Alpha.Opcode = pair_inst->RGB.Opcode;
pair_inst->Alpha.DestIndex = new_index;
- pair_inst->Alpha.WriteMask = 1;
+ pair_inst->Alpha.WriteMask = RC_MASK_W;
pair_inst->Alpha.Target = pair_inst->RGB.Target;
pair_inst->Alpha.OutputWriteMask = pair_inst->RGB.OutputWriteMask;
pair_inst->Alpha.DepthWriteMask = pair_inst->RGB.DepthWriteMask;