egl: only check dri3 on X11
authorantonino <antonino.maniscalco@collabora.com>
Mon, 8 Jan 2024 12:29:41 +0000 (13:29 +0100)
committerEric Engestrom <eric@engestrom.ch>
Wed, 10 Jan 2024 10:29:00 +0000 (10:29 +0000)
commit04b3e4a4f221fe726347ab52c57f9bd5f35c9754
treee59e658369eac655be98de1cfe1f9ca51279bb35
parenta53c9acd822f9f9e31cc295be6c01bae388b3e98
egl: only check dri3 on X11

When mesa is built without support for X11 Zink will always refuse to
start unless `LIBGL_KOPPER_DRI2` is set.

Only perform this check on X11 where it is relevant.

Fixes: cedb534a176 ("egl/glx: don't load non-sw zink without dri3 support")
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26929>
(cherry picked from commit 0fd066a1d7f64011fed63c64a1d3e3757ba5a55b)
.pick_status.json
src/egl/drivers/dri2/egl_dri2.c