mesa/src/vulkan/device-select-layer/VkLayer_MESA_device_select.json.in
Dave Airlie 833706e381 device-select: add a layer setting to disable device selection logic
There are cases like zink where we have a file descriptors we are searching
for devices for, so we don't need device selecting reordering, we just want
the fastest path to get the devices so we can match them.

This also helps avoid some cases of deadlock inside compositors where
zink/vulkan initialises later and tries to connect to the compositor.

This uses a VK_EXT_layer_setting to add a bypass setting.

Cc: mesa-stable
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38252>
2026-01-05 23:51:26 +00:00

23 lines
600 B
JSON

{
"file_format_version" : "1.0.0",
"layer" : {
"name": "VK_LAYER_MESA_device_select",
"type": "GLOBAL",
"library_path": "@library_path@",
"api_version": "1.4.303",
"implementation_version": "1",
"description": "Linux device selection layer",
"instance_extensions": [
{
"name": "VK_EXT_layer_settings",
"spec_version": "2"
}
],
"functions": {
"vkNegotiateLoaderLayerInterfaceVersion": "vkNegotiateLoaderLayerInterfaceVersion"
},
"disable_environment": {
"NODEVICE_SELECT": "1"
}
}
}