diff options
author | Corbin Simpson <[email protected]> | 2010-04-16 00:35:10 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-04-16 00:43:17 -0700 |
commit | 2c5b35807eb506a1f7a4fc675f5644ae2f675d84 (patch) | |
tree | a156224ce2f766cdd90fddfa134b9acc43cda5c4 /src/mesa/drivers | |
parent | a089fe281645395d68cfae6d66151a8a88fe5f8e (diff) |
r300/compiler: Fix magic numbers in readmasks.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c b/src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c index 9d289fce342..cf8602e3290 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; |