From: Jonathan Marek Date: Mon, 24 Jun 2019 21:05:06 +0000 (-0400) Subject: etnaviv: clear all bits for 24bpp depth without stencil X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a99a265b14b1db05ade75f0e2fe8e9e3b6d04358;p=mesa.git 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 --- 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;