mesa/src/vulkan/wsi
Chia-I Wu a8173a78a3 vulkan/wsi: fix select_memory_type when all MTs are local
The intention is to pick the system memory for the prime blit dst, but
that is not possible when all memory types are advertised to be local.

This fixes venus over vtest (i.e., unix socket) because the driver
provides no PCI bus info and wsi_device_matches_drm_fd returns false.  A
driver might also use can_present_on_device to force prime blit.

Fixes: 469875596a ("vulkan/wsi: Fix prime blits to use system memory for the destination")

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11774>
2021-07-08 17:08:46 +00:00
..
meson.build vulkan: implement wsi_win32 backend 2021-02-25 03:41:36 +00:00
wsi_common.c vulkan: implement wsi_win32 backend 2021-02-25 03:41:36 +00:00
wsi_common.h vulkan/wsi: provide more info in wsi_image_create_info 2021-06-03 04:24:55 +00:00
wsi_common_display.c vulkan/wsi: Implement VK_EXT_acquire_drm_display 2021-06-24 15:48:38 +00:00
wsi_common_display.h vulkan/wsi: Implement VK_EXT_acquire_drm_display 2021-06-24 15:48:38 +00:00
wsi_common_drm.c vulkan/wsi: fix select_memory_type when all MTs are local 2021-07-08 17:08:46 +00:00
wsi_common_private.h vulkan: implement wsi_win32 backend 2021-02-25 03:41:36 +00:00
wsi_common_queue.h vulkan/wsi: Fix resource leak in success path of wsi_queue_init() 2016-11-28 21:11:25 +00:00
wsi_common_wayland.c vulkan/wsi/wayland: handle dmabuf params allocation failure 2021-07-08 12:05:28 +02:00
wsi_common_wayland.h anv: move to using shared wsi code 2016-10-19 10:15:43 +10:00
wsi_common_win32.c vulkan/wsi: provide more info in wsi_image_create_info 2021-06-03 04:24:55 +00:00
wsi_common_win32.h vulkan: implement wsi_win32 backend 2021-02-25 03:41:36 +00:00
wsi_common_x11.c vulkan/wsi: avoid wsi_x11_check_for_dri3 for sw device 2021-05-03 13:33:08 +00:00
wsi_common_x11.h vulkan: drop always-true param 2018-10-26 18:33:11 +01:00