mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
ac/surface: Set compressZ for stencil-only surfaces.
We HTILE compress stencil-only surfaces too.
CC: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit 1a8501a9dd)
This commit is contained in:
parent
4c07e44ae5
commit
19655023a9
1 changed files with 1 additions and 1 deletions
|
|
@ -624,7 +624,7 @@ static int gfx6_compute_surface(ADDR_HANDLE addrlib,
|
|||
config->info.levels == 1);
|
||||
|
||||
AddrSurfInfoIn.flags.noStencil = (surf->flags & RADEON_SURF_SBUFFER) == 0;
|
||||
AddrSurfInfoIn.flags.compressZ = AddrSurfInfoIn.flags.depth;
|
||||
AddrSurfInfoIn.flags.compressZ = !!(surf->flags & RADEON_SURF_Z_OR_SBUFFER);
|
||||
|
||||
/* On CI/VI, the DB uses the same pitch and tile mode (except tilesplit)
|
||||
* for Z and stencil. This can cause a number of problems which we work
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue