anv/formats: Disable I915_FORMAT_MOD_Y_TILED_CCS on TGL+
authorNanley Chery <nanley.g.chery@intel.com>
Mon, 23 Sep 2019 20:32:06 +0000 (13:32 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Mon, 28 Oct 2019 17:47:04 +0000 (10:47 -0700)
The format of the CCS has changed.

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

index 2e2fc85105770be053ac0e1b16187b1ba72b3fa5..9431dab6012443d738e2dea99932ee1c66c5787b 100644 (file)
@@ -733,6 +733,11 @@ get_wsi_format_modifier_properties_list(const struct anv_physical_device *physic
                                      anv_format->planes[0].isl_format))
          continue;
 
+      /* Gen12's CCS layout changes compared to Gen9-11. */
+      if (mod_info->modifier == I915_FORMAT_MOD_Y_TILED_CCS &&
+          physical_device->info.gen >= 12)
+         continue;
+
       vk_outarray_append(&out, mod_props) {
          mod_props->modifier = modifiers[i];
          if (isl_drm_modifier_has_aux(modifiers[i]))