Mesa (staging/19.3): amd/common: Fix tcCompatible degradation on Stoney.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 17 17:24:20 UTC 2019
Module: Mesa
Branch: staging/19.3
Commit: 4f45bac153f21394751ade4b9d2e582cffac2737
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f45bac153f21394751ade4b9d2e582cffac2737
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date: Wed Dec 11 16:04:58 2019 +0100
amd/common: Fix tcCompatible degradation on Stoney.
addrlib sometimes returns smaller sizes for tcCompat as it does
not seem to take into account the depth+stencil matching config
gymnastics with tcCompat.
This fixes
dEQP-VK.pipeline.render_to_image.core.2d_array.huge.height.r8g8b8a8_unorm_d32_sfloat_s8_uint
CC: <mesa-stable at lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3054>
(cherry picked from commit e197fb1c2fccf4719630d91a7c7f76308d88132b)
---
src/amd/common/ac_surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index c51c493775e..0376f5d79c7 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -344,7 +344,7 @@ static int gfx6_compute_level(ADDR_HANDLE addrlib,
surf_level->mode == RADEON_SURF_MODE_2D &&
level == 0 &&
!(surf->flags & RADEON_SURF_NO_HTILE)) {
- AddrHtileIn->flags.tcCompatible = AddrSurfInfoIn->flags.tcCompatible;
+ AddrHtileIn->flags.tcCompatible = AddrSurfInfoOut->tcCompatible;
AddrHtileIn->pitch = AddrSurfInfoOut->pitch;
AddrHtileIn->height = AddrSurfInfoOut->height;
AddrHtileIn->numSlices = AddrSurfInfoOut->depth;
More information about the mesa-commit
mailing list