mesa/src/vulkan/device-select-layer
Benjamin Otte 4598028fde device_select: Allow shortcut names for device types
Add a bunch of shortcut names to select physical devices by their device
type.
In particular this aims to make switching between igpu and dgpu easy as
well as testing with lavapipe.

v2:
- rebase and reformat
- use strncasecmp and VkPhysicalDeviceType
- only print debug message when enabled

Signed-off-by: Benjamin Otte <otte@redhat.com>
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> (v2)
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36717>
2025-08-29 15:51:06 +00:00
..
.clang-format device-select: clang-format 2025-08-29 15:51:03 +00:00
device_select.c device_select: Allow shortcut names for device types 2025-08-29 15:51:06 +00:00
device_select.h device_select: Allow shortcut names for device types 2025-08-29 15:51:06 +00:00
device_select_layer.c device-select: refactor device_select_get_default 2025-08-29 15:51:06 +00:00
device_select_wayland.c device-select: clang-format 2025-08-29 15:51:03 +00:00
device_select_x11.c device-select: clang-format 2025-08-29 15:51:03 +00:00
meson.build device-select: move get_default_device to it's own file 2025-08-29 15:51:04 +00:00
VkLayer_MESA_device_select.json.in meson: include VkLayer_MESA_device_select in the devenv 2025-06-20 21:51:17 +00:00