anv: Limit modifier disabling workaround to specific GTK versions

The issue caused us to put a switch to disable (Xe2) drm modifers
in 2418c91537 is fixed in GTK 4.20.3,
so we can enable the modifiers with this and newer GTK releases.

GTK https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/9164:
b2a42d5a6e Revert "vulkan: Wait for device to be idle before
           create/recreating swapchain"
270735a151 vulkan: Rework swapchain present implementation

The hex values represent the GTK version range: [4.0.0, 4.20.2] for
VK_MAKE_VERSION(), refer to:
f493f5c88d

Cc: mesa-stable
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
(cherry picked from commit df7d333656)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40092>
This commit is contained in:
Jianxun Zhang 2026-01-08 14:41:47 -08:00 committed by Eric Engestrom
parent f60b93b454
commit 372c7545e6
2 changed files with 2 additions and 2 deletions

View file

@ -3244,7 +3244,7 @@
"description": "anv: Limit modifier disabling workaround to specific GTK versions",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1130,7 +1130,7 @@ TODO: document the other workarounds.
<engine engine_name_match="GTK" engine_versions="16777216:16859138">
<option name="vk_wsi_disable_unordered_submits" value="true" />
</engine>
<engine engine_name_match="GTK">
<engine engine_name_match="GTK" engine_versions="16777216:16859138">
<option name="anv_disable_drm_ccs_modifiers" value="true" />
</engine>
<!--