loader: make it possible to filter the physical devices by vendor, device and / or driver id#1759
Merged
charles-lunarg merged 1 commit intoAug 13, 2025
Conversation
…vice and / or driver id This change introduces the VK_LOADER_DEVICE_ID_FILTER, VK_LOADER_VENDOR_ID_FILTER and VK_LOADER_DRIVER_ID_FILTER enviroment variables, where a comma separated list of id ranges can be provided to restrict the enumerated physical devices by device, vendor and/or driver id. e.g. VK_LOADER_DEVICE_ID_FILTER or VK_LOADER_VENDOR_ID_FILTER: "0x10001-0x1FFFF,0x1eb1" e.g. VK_LOADER_DRIVER_ID_FILTER: "3,7-9"
|
Author hapakj not on autobuild list. Waiting for curator authorization before starting CI build. |
1 similar comment
|
Author hapakj not on autobuild list. Waiting for curator authorization before starting CI build. |
charles-lunarg
approved these changes
Aug 13, 2025
charles-lunarg
left a comment
Collaborator
There was a problem hiding this comment.
Code looks good. All the i's are dotted and t's are crossed so to speak.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change introduces the VK_LOADER_DEVICE_ID_FILTER, VK_LOADER_VENDOR_ID_FILTER and VK_LOADER_DRIVER_ID_FILTER environment variables, where a comma separated list of id ranges can be provided to restrict the enumerated physical devices by the given device, vendor and/or driver ids.
This is mainly needed for the Vulkan SC, but since it's a generic functionality it could be useful also for Vulkan.
e.g. VK_LOADER_DEVICE_ID_FILTER or VK_LOADER_VENDOR_ID_FILTER: "0x10001-0x1FFFF,0x1eb1"
e.g. VK_LOADER_DRIVER_ID_FILTER: "3,7-9"