From 5d41d8258a71fa352d8129bf33ce877046a9313c Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 8 Feb 2023 11:38:25 +0100 Subject: [PATCH] radv: disable DCC for mipmaps on GFX11 It seems broken but can't really figure out why and DCC levels aren't interleaved on GFX11. Skipping DCC initialization for levels seems to also fix it but seems safer to disable completely, as a hotfix. Fixes DCC issues with Hi-Fi Rush, Sonic Frontiers, Hogwarts Legacy and probably more. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8230 Cc: mesa-stable Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_image.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index cad0e575c08..02fd2d53606 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -288,6 +288,10 @@ radv_use_dcc_for_image_early(struct radv_device *device, struct radv_image *imag if (pCreateInfo->samples > 1 && !device->physical_device->use_fmask) return false; + /* FIXME: DCC with mipmaps is broken on GFX11. */ + if (device->physical_device->rad_info.gfx_level == GFX11 && pCreateInfo->mipLevels > 1) + return false; + return radv_are_formats_dcc_compatible(device->physical_device, pCreateInfo->pNext, format, pCreateInfo->flags, sign_reinterpret); }