wsi/x11: Always link against xcb-xrandr

The next commit will make use of it even without
VK_USE_PLATFORM_XLIB_XRANDR_EXT.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8197>
This commit is contained in:
Michel Dänzer 2020-12-21 12:11:40 +01:00 committed by Michel Dänzer
parent 1cce8e1101
commit 1de2fd0cf2
4 changed files with 5 additions and 4 deletions

View File

@ -141,7 +141,7 @@ if system_has_kms_drm and not with_platform_android
endif
if with_xlib_lease
radv_deps += [dep_xcb_xrandr, dep_xlib_xrandr]
radv_deps += [dep_xlib_xrandr]
radv_flags += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT'
endif

View File

@ -103,7 +103,7 @@ if with_platform_android
endif
if with_xlib_lease
tu_deps += [dep_xcb_xrandr, dep_xlib_xrandr]
tu_deps += [dep_xlib_xrandr]
tu_flags += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT'
endif

View File

@ -162,7 +162,7 @@ if system_has_kms_drm and not with_platform_android
endif
if with_xlib_lease
anv_deps += [dep_xcb_xrandr, dep_xlib_xrandr]
anv_deps += [dep_xlib_xrandr]
anv_flags += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT'
endif

View File

@ -36,6 +36,7 @@ if with_platform_x11
dep_xcb_dri3,
dep_xcb_present,
dep_xcb_sync,
dep_xcb_xrandr,
dep_xshmfence,
]
vulkan_wsi_list += ['xcb', 'x11']
@ -52,7 +53,7 @@ if system_has_kms_drm and not with_platform_android
endif
if with_xlib_lease
vulkan_wsi_args += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT'
vulkan_wsi_deps += [dep_xcb_xrandr, dep_xlib_xrandr]
vulkan_wsi_deps += [dep_xlib_xrandr]
vulkan_wsi_list += ['xlib_xrandr']
endif