Skip to content

vulkan/wsi: allow non-PCI devices to avoid the prime blit path

Iago Toral requested to merge itoral/mesa:vulkan_wsi_present_non_pci into master

Currently, we only support presenting directly on PCI devices, falling back to a slower blit path for everything else. This patch allows non-PCI devices to also present directly, improving performance.

To do this, the implementation is expected to pass valid display_fd when initializing the wsi device, which will be used to retrieve information about the underlying DRM device that can be used in wsi_device_matches_drm_fd to verify that we can display on the device directly. This is similar to what we do for PCI devices, only that we don't have a dedicated Vulkan extension to query the information we need from the implementation, which is why we require the implementation to pass the display fd so we can query that information automatically during wsi setup.

Edited by Iago Toral

Merge request reports