From: Nanley Chery Date: Fri, 14 Sep 2018 18:25:43 +0000 (-0700) Subject: anv/image: Disable CCS_D on Gen12+ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f0b5f9732b144f9f0d6a577e10d2896cb3a4f3c;p=mesa.git 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 --- 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);