r600g: make stencil readback work
authorDave Airlie <airlied@redhat.com>
Wed, 22 Sep 2010 04:19:16 +0000 (14:19 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Sep 2010 04:19:16 +0000 (14:19 +1000)
need to write two components to get stencil components as well

src/gallium/drivers/r600/r600_blit.c

index e1f226cbdda672bb6231f332ed100cc69cf89dff..8db3de0c4fbb6f5914bc9447b88daaa3fef415cc 100644 (file)
@@ -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);