egl/wayland: ignore unsupported driver configs

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29904>
This commit is contained in:
Julian Orth
2024-06-25 22:43:36 +02:00
committed by Marge Bot
parent 3589035d61
commit 77759f7683

View File

@@ -2073,6 +2073,9 @@ dri2_wl_add_configs_for_visuals(_EGLDisplay *disp)
bool conversion = false;
int idx = dri2_wl_visual_idx_from_config(dri2_dpy->driver_configs[i]);
if (idx < 0)
continue;
/* Check if the server natively supports the colour buffer format */
if (!server_supports_format(&dri2_dpy->formats, idx)) {
/* In multi-GPU scenarios, we usually have a different buffer, so a