mesa/src/vulkan
Iago Toral Quiroga 0c0c1418ae vulkan/wsi: give drivers the option to decide if they need to blit
Until now, the WSI code would rely on VK_EXT_pci_bus_info to check if the
WSI device matched the DRM device used for display. If they matched, then
it would allow direct presentation of the swapchain images, otherwise
it would fallback to a blit path through a linear buffer.

Unfortunately, this only works for PCI devices, so embedded GPUs would
always fail the test and fallback to the prime blit path, incurring in a
performance penalty due to the extra blit.

With this change driver backends have the possibility to attach a
callback to the WSI device to take control over that decision and have
freedom to make that choice according to their own platform particularities.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5917>
2021-04-27 06:37:43 +00:00
..
device-select-layer vulkan/device_select: Only call vkGetPhysicalDeviceProperties2 if the device supports it. 2021-03-09 15:00:57 +00:00
overlay-layer vulkan-overlay-layer: Use the new dispatch tables 2021-02-01 18:54:24 +00:00
registry vulkan: Update the XML and headers to 1.2.177 2021-04-26 15:13:19 +00:00
util meson: link vulkan_util with link_whole on mingw 2021-04-19 22:46:30 +00:00
wsi vulkan/wsi: give drivers the option to decide if they need to blit 2021-04-27 06:37:43 +00:00
Android.mk vulkan: Add framework for common entrypoints 2021-02-01 18:54:24 +00:00
Makefile.sources android: vulkan/util: add vk_descriptors.{c,h} to Makefile.sources 2021-03-23 20:29:55 +01:00
meson.build vulkan: fix duplicate win32 def 2021-04-19 22:46:30 +00:00
vulkan-icd-symbols.txt vulkan: Allow global symbol HMI for Android 2020-08-05 18:08:07 +00:00