From 2470bcb946d7009ef6b9f87672cfb3143bda6c98 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Thu, 1 Apr 2021 10:04:33 +0200 Subject: [PATCH] meson: Fix missing xcb-xrandr dependency for Vulkan X11 WSI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a build failure when building any Vulkan driver for the X11 platform with -Dxlib-lease=disabled. For example: /usr/bin/ld: src/vulkan/wsi/libvulkan_wsi.a(wsi_common_x11.c.o): in function `wsi_x11_detect_xwayland': src/vulkan/wsi/wsi_common_x11.c:123: undefined reference to `xcb_randr_query_version_unchecked' Fixes: 1de2fd0cf205 "wsi/x11: Always link against xcb-xrandr" Signed-off-by: Philipp Zabel Reviewed-by: Michel Dänzer Reviewed-by: Adam Jackson Part-of: --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c69659afc2c..9520da6252b 100644 --- a/meson.build +++ b/meson.build @@ -1892,8 +1892,10 @@ if with_platform_x11 with_gallium_omx != 'disabled')) dep_xcb_xfixes = dependency('xcb-xfixes') endif - if with_xlib_lease + if with_xlib_lease or with_any_vk dep_xcb_xrandr = dependency('xcb-randr') + endif + if with_xlib_lease dep_xlib_xrandr = dependency('xrandr', version : '>= 1.3') endif endif