loader/wayland: Add named queue fallback
If libwayland isn't new enough to create event queues with names, just throw away the name. It's just a debug feature anyway. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27824>
This commit is contained in:
@@ -2020,6 +2020,12 @@ if with_platform_wayland
|
||||
dependencies: dep_wayland_client)
|
||||
pre_args += ['-DHAVE_WL_DISPATCH_QUEUE_TIMEOUT']
|
||||
endif
|
||||
if cc.has_function(
|
||||
'wl_display_create_queue_with_name',
|
||||
prefix : '#include <wayland-client.h>',
|
||||
dependencies: dep_wayland_client)
|
||||
pre_args += ['-DHAVE_WL_CREATE_QUEUE_WITH_NAME']
|
||||
endif
|
||||
endif
|
||||
|
||||
dep_x11 = null_dep
|
||||
|
Reference in New Issue
Block a user