From 9704ed3f57173b4bb8b04c96b2e3cb3c9c707336 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 11 Mar 2021 16:59:11 +0100 Subject: [PATCH] radv: remove useless DCC disable check for 3D images on GFX10+ addrlib uses the S swizzle mode which disables DCC completely. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_image.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 99c8ad50c55..ffae3007ae0 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -212,12 +212,6 @@ radv_use_dcc_for_image(struct radv_device *device, if (!radv_image_use_fast_clear_for_image(device, image)) return false; - /* FIXME: DCC for 3D images with mimaps are broken on GFX10+. */ - if (pCreateInfo->mipLevels > 1 && - pCreateInfo->imageType == VK_IMAGE_TYPE_3D && - device->physical_device->rad_info.chip_class >= GFX10) - return false; - /* FIXME: Fix DCC layers and mipmaps on GFX9. */ if ((pCreateInfo->arrayLayers > 1 || pCreateInfo->mipLevels > 1) && device->physical_device->rad_info.chip_class == GFX9)