intel/isl: ASTC support was removed on Gfx12.5
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 5 Oct 2021 21:16:16 +0000 (16:16 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 Oct 2021 15:04:33 +0000 (15:04 +0000)
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13206>

src/intel/isl/isl_format.c

index 6a83a59..de2b5ea 100644 (file)
@@ -733,6 +733,16 @@ isl_format_supports_sampling(const struct intel_device_info *devinfo,
        */
       if (fmtl->txc == ISL_TXC_ASTC)
          return true;
+   } else if (devinfo->verx10 >= 125) {
+      const struct isl_format_layout *fmtl = isl_format_get_layout(format);
+      /* ASTC support was removed from the hardware on Gfx12.5.  Annoyingly,
+       * our format_info table doesn't have a concept of things being removed
+       * so we handle it as yet another special case.
+       *
+       * See HSD 1408144932
+       */
+      if (fmtl->txc == ISL_TXC_ASTC)
+         return false;
    }
 
    return devinfo->verx10 >= format_info[format].sampling;