r300/compiler: Fix magic numbers in readmasks.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 16 Apr 2010 07:35:10 +0000 (00:35 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 16 Apr 2010 07:43:17 +0000 (00:43 -0700)
src/mesa/drivers/dri/r300/compiler/radeon_opcodes.c

index 9d289fce3429e439dce7cf5c4c59b77f2dfcf338..cf8602e329080e469b18ce40e0e8293fc83f204b 100644 (file)
@@ -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;