anv/image: Disable CCS_D on Gen12+
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 14 Sep 2018 18:25:43 +0000 (11:25 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:04 +0000 (10:47 -0700)
Clear-only compression no longer exists on TGL.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/anv_image.c

index 8db8642b5d5a58837013dd7d86cbc6f7c7d82793..dc4d9724baa22f79914e652321d37dbb0668dd1b 100644 (file)
@@ -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);