From e7f3da013856244e46e175adcb7d232717d151d8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 5 Oct 2021 16:16:16 -0500 Subject: [PATCH] intel/isl: ASTC support was removed on Gfx12.5 Reviewed-by: Nanley Chery Reviewed-by: Jordan Justen Part-of: --- 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;