Mesa (master): r600g: make stencil readback work
Dave Airlie
airlied at kemper.freedesktop.org
Wed Sep 22 04:21:16 UTC 2010
Module: Mesa
Branch: master
Commit: d18f3accb02646a48c1f1e1e276d5d9f1dc667b3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d18f3accb02646a48c1f1e1e276d5d9f1dc667b3
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Sep 22 14:19:16 2010 +1000
r600g: make stencil readback work
need to write two components to get stencil components as well
---
src/gallium/drivers/r600/r600_blit.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index e1f226c..8db3de0 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -583,9 +583,8 @@ int r600_blit_uncompress_depth(struct pipe_context *ctx, struct r600_resource_te
bstates.dsa.states[R600_DSA__DB_RENDER_CONTROL] = S_028D0C_DEPTH_COPY_ENABLE(1) |
S_028D0C_STENCIL_COPY_ENABLE(1) |
S_028D0C_COPY_CENTROID(1);
- bstates.cb_cntl.states[R600_CB_CNTL__CB_TARGET_MASK] = 0x00000001;
}
-
+ bstates.cb_cntl.states[R600_CB_CNTL__CB_TARGET_MASK] = 0x00000003;
r600_blit_state_cb_flush(rscreen, &bstates.cb_flush, rtexture, 0, 0);
r600_blit_state_db_flush(rscreen, &bstates.db_flush, rtexture, 0, 0);
More information about the mesa-commit
mailing list