From 4f0b5f9732b144f9f0d6a577e10d2896cb3a4f3c Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Fri, 14 Sep 2018 11:25:43 -0700 Subject: [PATCH] anv/image: Disable CCS_D on Gen12+ Clear-only compression no longer exists on TGL. Reviewed-by: Kenneth Graunke Reviewed-by: Sagar Ghuge Reviewed-by: Jordan Justen --- src/intel/vulkan/anv_image.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 8db8642b5d5..dc4d9724baa 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -481,6 +481,12 @@ make_surface(const struct anv_device *dev, if (!(image->usage & VK_IMAGE_USAGE_STORAGE_BIT) && image->ccs_e_compatible) { image->planes[plane].aux_usage = ISL_AUX_USAGE_CCS_E; + } else if (dev->info.gen >= 12) { + anv_perf_warn(dev->instance, image, + "The CCS_D aux mode is not yet handled on " + "Gen12+. Not allocating a CCS buffer."); + image->planes[plane].aux_surface.isl.size_B = 0; + return VK_SUCCESS; } add_surface(image, &image->planes[plane].aux_surface, plane); -- 2.30.2