summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-09-02 16:39:32 +1000
committerDave Airlie <airlied@redhat.com>2010-09-02 16:40:41 +1000
commit76d0541e79d4fe2ffcb25b17f9dd540fafc14ba2 (patch)
tree58463b80b8edd169ba84b85bec7541e475041d2a
parente8ff0f63b6f078b17989e42dd05c9b69729b341b (diff)
r600g: fix logicop, the 3d ROP is the 2D rop shifted twice.
-rw-r--r--src/gallium/drivers/r600/r600_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 95611d1739..66cab7d7a6 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -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);
}