diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-04-16 00:35:10 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2010-04-16 00:43:17 -0700 |
commit | 2c5b35807eb506a1f7a4fc675f5644ae2f675d84 (patch) | |
tree | a156224ce2f766cdd90fddfa134b9acc43cda5c4 /src/mesa/drivers | |
parent | a089fe281645395d68cfae6d66151a8a88fe5f8e (diff) | |
download | external_mesa3d-2c5b35807eb506a1f7a4fc675f5644ae2f675d84.zip external_mesa3d-2c5b35807eb506a1f7a4fc675f5644ae2f675d84.tar.gz external_mesa3d-2c5b35807eb506a1f7a4fc675f5644ae2f675d84.tar.bz2 |
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 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; |