r600g: fix logicop, the 3d ROP is the 2D rop shifted twice.
authorDave Airlie <airlied@redhat.com>
Thu, 2 Sep 2010 06:39:32 +0000 (16:39 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Sep 2010 06:40:41 +0000 (16:40 +1000)
src/gallium/drivers/r600/r600_state.c

index 95611d173948d17c9cdd8fd867e26637ebbcbea1..66cab7d7a6ec177e2790cb0dd85998479d9744f9 100644 (file)
@@ -1319,7 +1319,7 @@ static void r600_cb_cntl(struct r600_context *rctx, struct radeon_state *rstate)
        }
 
        if (pbs->logicop_enable) {
-               color_control |= (pbs->logicop_func) << 16;
+               color_control |= (pbs->logicop_func << 16) | (pbs->logicop_func << 20);
        } else {
                color_control |= (0xcc << 16);
        }