diff options
author | Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> | 2018-06-18 16:29:16 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-06-19 08:26:53 -0700 |
commit | 19655023a9158a6afbd2eb6bacbe2e52c0f42cc5 (patch) | |
tree | e6e8eaa40e5fff3d863eb07ace39cb025ec6753f | |
parent | 4c07e44ae5b6c5d81862f3ec31ea77c6c598cb52 (diff) |
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 1a8501a9ddfff6c3eab47046e0e8a9dc17492bf0)
-rw-r--r-- | src/amd/common/ac_surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index a23952717e..fc969df2d1 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -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 |