Mesa (main): intel/isl: ASTC support was removed on Gfx12.5
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 6 15:19:52 UTC 2021
Module: Mesa
Branch: main
Commit: e7f3da013856244e46e175adcb7d232717d151d8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7f3da013856244e46e175adcb7d232717d151d8
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Tue Oct 5 16:16:16 2021 -0500
intel/isl: ASTC support was removed on Gfx12.5
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13206>
---
src/intel/isl/isl_format.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c
index 6a83a59f56c..de2b5eaaf9d 100644
--- a/src/intel/isl/isl_format.c
+++ b/src/intel/isl/isl_format.c
@@ -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;
More information about the mesa-commit
mailing list