Skip to content
Snippets Groups Projects
Commit ccde34b7 authored by Valentine Burley's avatar Valentine Burley Committed by Eric Engestrom
Browse files

vulkan/wsi: Refactor can_present_on_device


Make wsi_device_matches_drm_fd() a default helper that PCI based GPUs plug in to
wsi_dev->can_present_on_device. This is needed for devices without libdrm, where
wsi_device_matches_drm_fd was still being called causing an "undefined reference"
build error.

Suggested-by: default avatarRob Clark <robdclark@chromium.org>
Fixes: baa38c14 ("vulkan/wsi: Use VK_EXT_pci_bus_info for DRM fd matching")
Reviewed-by: default avatarMark Collins <mark@igalia.com>
Reviewed-by: default avatarFaith Ekstrand <faith.ekstrand@collabora.com>
Signed-off-by: default avatarValentine Burley <valentine.burley@gmail.com>
Part-of: <mesa/mesa!29627>
(cherry picked from commit 47289ebc)
parent 5168d629
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment