r300/compiler: Use RC_MASK_W when converting RGB to Alpha instructions
authorTom Stellard <tstellar@gmail.com>
Sun, 20 Mar 2011 07:09:30 +0000 (00:09 -0700)
committerTom Stellard <tstellar@gmail.com>
Sat, 30 Apr 2011 18:00:15 +0000 (11:00 -0700)
src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c

index 3743b0239d4ee0bf6fa00a5c50f8a809acdd1b58..25cd52c9cd41292c14f8abdbcc04527de4a995c7 100644 (file)
@@ -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;