r300/compiler: Fix a really stupid logic inversion in the generic dataflow code
authorNicolai Hähnle <nhaehnle@gmail.com>
Tue, 6 Oct 2009 18:24:46 +0000 (20:24 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Tue, 6 Oct 2009 18:25:07 +0000 (20:25 +0200)
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/compiler/radeon_dataflow.c

index 58dcb20d29cd38c1827995bd24409386eca2b4a3..cce9166e6442027ef875703303c91f0b4e9e3c1d 100644 (file)
@@ -44,7 +44,7 @@ static void reads_normal(struct rc_instruction * fullinst, rc_read_write_fn cb,
                for(unsigned int chan = 0; chan < 4; ++chan)
                        refmask |= 1 << GET_SWZ(inst->SrcReg[src].Swizzle, chan);
 
-               refmask &= ~RC_MASK_XYZW;
+               refmask &= RC_MASK_XYZW;
 
                for(unsigned int chan = 0; chan < 4; ++chan) {
                        if (GET_BIT(refmask, chan)) {