diff options
author | Jonathan Marek <[email protected]> | 2019-06-24 17:05:06 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-06-29 21:49:50 -0400 |
commit | a99a265b14b1db05ade75f0e2fe8e9e3b6d04358 (patch) | |
tree | 74c8f80f7a2892f532647e5c029d01fe05abc0d2 | |
parent | 74f064ae908f0ec39fee7a1c5202a4b42255a245 (diff) |
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 <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_blt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |