From cda75253f729351a20e943e702a9d50865bc878a Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 8 Sep 2013 17:00:40 -0400 Subject: freedreno/a3xx: stencil fixes For mem->gmem we don't sample depth/stencil as it's native type. So we need to setup the swizzle state for the sampler based on the format used for sampling. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a3xx/fd3_zsa.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_zsa.c') diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_zsa.c b/src/gallium/drivers/freedreno/a3xx/fd3_zsa.c index 15833ad1bef..c97cfb73695 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_zsa.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_zsa.c @@ -62,6 +62,7 @@ fd3_zsa_state_create(struct pipe_context *pctx, const struct pipe_stencil_state *s = &cso->stencil[0]; so->rb_stencil_control |= + A3XX_RB_STENCIL_CONTROL_STENCIL_READ | A3XX_RB_STENCIL_CONTROL_STENCIL_ENABLE | A3XX_RB_STENCIL_CONTROL_FUNC(s->func) | /* maps 1:1 */ A3XX_RB_STENCIL_CONTROL_FAIL(fd_stencil_op(s->fail_op)) | -- cgit v1.2.3