From a99a265b14b1db05ade75f0e2fe8e9e3b6d04358 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Mon, 24 Jun 2019 17:05:06 -0400 Subject: [PATCH] etnaviv: clear all bits for 24bpp depth without stencil For fast clear to happen, all bits must be cleared. This allows using fast clear for 24bpp depth without stencil. Signed-off-by: Jonathan Marek Reviewed-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_blt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_blt.c b/src/gallium/drivers/etnaviv/etnaviv_blt.c index d1693c77fe3..1f13bbc31cd 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_blt.c +++ b/src/gallium/drivers/etnaviv/etnaviv_blt.c @@ -261,10 +261,10 @@ etna_blit_clear_zs_blt(struct pipe_context *pctx, struct pipe_surface *dst, /* Get the channels to clear */ switch (surf->base.format) { case PIPE_FORMAT_Z16_UNORM: + case PIPE_FORMAT_X8Z24_UNORM: clear_bits_depth = 0xffffffff; clear_bits_stencil = 0x00000000; break; - case PIPE_FORMAT_X8Z24_UNORM: case PIPE_FORMAT_S8_UINT_Z24_UNORM: clear_bits_depth = 0xffffff00; clear_bits_stencil = 0x000000ff; -- 2.30.2