freedreno/a6xx: Separate stencil sysmem clear fix
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 2 Jul 2020 20:42:58 +0000 (13:42 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 06:12:22 +0000 (06:12 +0000)
We need to clear with PIPE_FORMAT_S8_UINT.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5717>

src/gallium/drivers/freedreno/a6xx/fd6_gmem.c

index 4707eee18d971f70dfa97a634bf52ce9275bd731..c43d26b985f0d908afa15da43c8cc689a9974ccc 100644 (file)
@@ -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,