anv: disable ccs modifier reporting when ccs modifiers are disabled

Reporting the modifiers when we're going to disable it in the back
hits various asserts in anv_image.c

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 2418c91537 ("anv/drirc: disable Xe2 CCS drm modifiers for GTK engine")
Helps: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14853
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
(cherry picked from commit 4f38b5c888)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40092>
This commit is contained in:
Lionel Landwerlin 2026-02-18 10:32:16 +02:00 committed by Eric Engestrom
parent 5fa6c15b36
commit 6f75431e98
2 changed files with 6 additions and 1 deletions

View file

@ -1874,7 +1874,7 @@
"description": "anv: disable ccs modifier reporting when ccs modifiers are disabled",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "2418c9153758783d250982f9b84fb65b1b484294",
"notes": null

View file

@ -1164,6 +1164,11 @@ get_drm_format_modifier_properties_list(const struct anv_physical_device *physic
if (!features)
continue;
if (physical_device->info.ver >= 20 &&
physical_device->instance->disable_xe2_drm_ccs_modifiers &&
isl_mod_info->supports_render_compression)
continue;
const uint32_t planes =
isl_drm_modifier_get_plane_count(&physical_device->info,
isl_mod_info->modifier,