From 1a58596258b434b7b487513bdebaf3777a8e772a Mon Sep 17 00:00:00 2001 From: "Kristian H. Kristensen" Date: Thu, 2 Jul 2020 13:42:58 -0700 Subject: [PATCH] freedreno/a6xx: Separate stencil sysmem clear fix We need to clear with PIPE_FORMAT_S8_UINT. Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_gmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c index 4707eee18d9..c43d26b985f 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c @@ -1327,6 +1327,7 @@ emit_sysmem_clears(struct fd_batch *batch, struct fd_ringbuffer *ring) value.ui[0] = batch->clear_stencil; struct pipe_surface stencil_surf = *pfb->zsbuf; + stencil_surf.format = PIPE_FORMAT_S8_UINT; stencil_surf.texture = separate_stencil; fd6_clear_surface(ctx, ring, -- 2.30.2