mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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 <jonathan@marek.ca> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
74f064ae90
commit
a99a265b14
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue