summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2021-01-13 10:37:19 +0100
committerMarge Bot <eric+marge@anholt.net>2021-01-13 13:42:04 +0000
commit825e2386dc3e5381cacb3ed1be8241b56e7d5798 (patch)
treea424ce283b96f9d74a344b48238c05dbab6f7a3a /src
parent755a8313fcf33a5646c8e7e2dd05adf73814dead (diff)
radv: do not enable DCC for 3D images with mipmaps on GFX10+
This is broken for some reasons, and probably rare enough to care for now. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8468>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_image.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 0ed0e07eaf8..371df177030 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -178,6 +178,12 @@ 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;
+
/* TODO: Enable DCC for mipmaps on GFX9+. */
if (pCreateInfo->mipLevels > 1 &&
device->physical_device->rad_info.chip_class >= GFX9)