From 2c5b35807eb506a1f7a4fc675f5644ae2f675d84 Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Fri, 16 Apr 2010 00:35:10 -0700 Subject: r300/compiler: Fix magic numbers in readmasks. --- src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c b/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c index 9d289fc..cf8602e 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c +++ b/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c @@ -412,15 +412,15 @@ void rc_compute_sources_for_writemask( srcmasks[0] |= RC_MASK_XYZW; break; case RC_OPCODE_DST: - srcmasks[0] |= 0x6; - srcmasks[1] |= 0xa; + srcmasks[0] |= RC_MASK_Y | RC_MASK_Z; + srcmasks[1] |= RC_MASK_Y | RC_MASK_W; break; case RC_OPCODE_EXP: case RC_OPCODE_LOG: srcmasks[0] |= RC_MASK_XY; break; case RC_OPCODE_LIT: - srcmasks[0] |= 0xb; + srcmasks[0] |= RC_MASK_X | RC_MASK_Y | RC_MASK_W; break; default: break; -- cgit v1.1