Mesa (master): radv: remove useless DCC disable check for 3D images on GFX10+
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Mar 15 13:06:52 UTC 2021
Module: Mesa
Branch: master
Commit: 9704ed3f57173b4bb8b04c96b2e3cb3c9c707336
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9704ed3f57173b4bb8b04c96b2e3cb3c9c707336
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu Mar 11 16:59:11 2021 +0100
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 <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9526>
---
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)
More information about the mesa-commit
mailing list