From a45e1802db528a5d2e622daccc5ca29a3d3d88b3 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 2 Sep 2018 13:24:12 -0400 Subject: [PATCH] freedreno/a6xx: fix mem2gmem for zsbuf Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a6xx/fd6_gmem.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c index fdffc692b2a..409b0ea6f33 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c @@ -180,6 +180,9 @@ emit_zs(struct fd_ringbuffer *ring, struct pipe_surface *zsbuf, OUT_RING(ring, A6XX_RB_STENCIL_BUFFER_ARRAY_PITCH(size)); OUT_RELOCW(ring, rsc->stencil->bo, 0, 0, 0); /* RB_STENCIL_BASE_LO/HI */ OUT_RING(ring, base); /* RB_STENCIL_BASE_LO */ + } else { + OUT_PKT4(ring, REG_A6XX_RB_STENCIL_INFO, 1); + OUT_RING(ring, 0x00000000); /* RB_STENCIL_INFO */ } } else { OUT_PKT4(ring, REG_A6XX_RB_DEPTH_BUFFER_INFO, 6); @@ -610,7 +613,7 @@ emit_restore_blit(struct fd_batch *batch, uint32_t base, info |= A6XX_RB_BLIT_INFO_UNK0; break; case FD_BUFFER_DEPTH: - info |= A6XX_RB_BLIT_INFO_DEPTH; + info |= A6XX_RB_BLIT_INFO_DEPTH | A6XX_RB_BLIT_INFO_UNK0; break; } -- 2.30.2