aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a3xx/fd3_zsa.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2013-09-08 17:00:40 -0400
committerRob Clark <[email protected]>2013-09-14 13:31:58 -0400
commitcda75253f729351a20e943e702a9d50865bc878a (patch)
tree1e803064ab48caa6b8dc5bf301eba2d42350d6c9 /src/gallium/drivers/freedreno/a3xx/fd3_zsa.c
parent65ae4392ce987e21975933363ee650a66375363c (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_zsa.c')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_zsa.c1
1 files changed, 1 insertions, 0 deletions
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)) |