From d4499c4cb26b87876f0ee16562a4c5b2bd4f8860 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 8 Nov 2023 16:40:49 +0200 Subject: [PATCH] isl: disable MCS compression on R9G9B9E5 Not supported according to the docs and will trigger an assert isl_get_render_compression_format(). Signed-off-by: Lionel Landwerlin Cc: mesa-stable Reviewed-by: Sagar Ghuge Part-of: --- src/intel/isl/isl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 3a962fe8119..3fe71de35e4 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -2770,6 +2770,13 @@ isl_surf_get_mcs_surf(const struct isl_device *dev, if (surf->msaa_layout != ISL_MSAA_LAYOUT_ARRAY) return false; + /* On Gfx12+ this format is not listed in TGL PRMs, Volume 2b: Command + * Reference: Enumerations, RenderCompressionFormat + */ + if (ISL_GFX_VER(dev) >= 12 && + surf->format == ISL_FORMAT_R9G9B9E5_SHAREDEXP) + return false; + /* The following are true of all multisampled surfaces */ assert(surf->samples > 1); assert(surf->dim == ISL_SURF_DIM_2D);