Skip to content

loader: make it possible to filter the physical devices by vendor, device and / or driver id#1759

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
RasterGrid:hapakj/device_filtering
Aug 13, 2025
Merged

loader: make it possible to filter the physical devices by vendor, device and / or driver id#1759
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
RasterGrid:hapakj/device_filtering

Conversation

@hapakj

@hapakj hapakj commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

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"

…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"
@ci-tester-lunarg

Copy link
Copy Markdown

Author hapakj not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg

Copy link
Copy Markdown

Author hapakj not on autobuild list. Waiting for curator authorization before starting CI build.

@aqnuep aqnuep requested a review from charles-lunarg August 13, 2025 12:18

@charles-lunarg charles-lunarg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. All the i's are dotted and t's are crossed so to speak.

@charles-lunarg charles-lunarg merged commit eae3da9 into KhronosGroup:main Aug 13, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants