mesa/src/vulkan/device-select-layer
prashanth 09e4fd1d84 vulkan/device_select: force default device if environment variable set
Force default device if MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE
environment variable set. This will not give multiple device
options to app. There are apps that selects gpu to use based on its
own criteria, this patch can force default behaviour for these apps
by giving only one gpu device to select from.

v2: return 0 if no physical device present (Mihai Preda)
v3: document environment variables (Mihai Preda)(Marek Olšák)

Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15585>
2022-04-28 08:05:40 +00:00
..
device_select.h vulkan/device_select: Store Vulkan vendorID and deviceID as uint32_t 2020-12-08 16:19:25 +00:00
device_select_layer.c vulkan/device_select: force default device if environment variable set 2022-04-28 08:05:40 +00:00
device_select_wayland.c vulkan/device_select: avoid segfault on Wayland if wl_drm is unavailable 2021-05-04 21:26:21 +00:00
device_select_x11.c vulkan-device-select: Don't leak xcb_query_extension_reply_t 2022-03-28 11:06:11 +00:00
meson.build meson: Add and use an idep for Vulkan WSI 2021-10-13 00:06:15 +00:00
VkLayer_MESA_device_select.json vulkan: bump layer api versions to current vk header version 2022-04-25 19:56:39 +00:00