From: Tom Stellard Date: Sun, 20 Mar 2011 07:09:30 +0000 (-0700) Subject: r300/compiler: Use RC_MASK_W when converting RGB to Alpha instructions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbac75fa2f8495c879d841803b494e7411427863;p=mesa.git r300/compiler: Use RC_MASK_W when converting RGB to Alpha instructions --- 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;