Mesa (master): r300/compiler: Use RC_MASK_W when converting RGB to Alpha instructions

Tom Stellard tstellar at kemper.freedesktop.org
Sat Apr 30 11:26:11 PDT 2011


Module: Mesa
Branch: master
Commit: dbac75fa2f8495c879d841803b494e7411427863
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbac75fa2f8495c879d841803b494e7411427863

Author: Tom Stellard <tstellar at gmail.com>
Date:   Sun Mar 20 00:09:30 2011 -0700

r300/compiler: Use RC_MASK_W when converting RGB to Alpha instructions

---

 .../dri/r300/compiler/radeon_pair_schedule.c       |    2 +-
 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 3743b02..25cd52c 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;



More information about the mesa-commit mailing list