Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the VK_LOADER_DRIVERS_SELECT example #1130

Merged
merged 1 commit into from Jan 31, 2023

Conversation

RyuzakiKK
Copy link
Contributor

In the documentation examples, if we set
VK_LOADER_DRIVERS_SELECT=nvidia, we are saying to the loader to select only the driver whose JSON manifest is called exactly nvidia.

This is likely not what we want, because the Nvidia drivers are usually called something like nvidia_icd.json, and not just nvidia without a file extension.

In the "Behavior" column it already states that:
"Since drivers don’t have a name like layers, this glob is used to compare against the manifest filename."
So, to avoid confusion, we just need to change the example to reflect how the loader glob works.

This commit also adds an additional automated test to ensure that this full-name string glob actually works as described in the documentation.

In the documentation examples, if we set
`VK_LOADER_DRIVERS_SELECT=nvidia`, we are saying to the loader to select
only the driver whose JSON manifest is called exactly `nvidia`.

This is likely not what we want, because the Nvidia drivers are usually
called something like `nvidia_icd.json`, and not just `nvidia` without a
file extension.

In the "Behavior" column it already states that:
"Since drivers don’t have a name like layers, this glob is used to
compare against the manifest filename."
So, to avoid confusion, we just need to change the example to reflect
how the loader glob works.

This commit also adds an additional automated test to ensure that this
full-name string glob actually works as described in the documentation.

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
@ci-tester-lunarg
Copy link

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

Copy link
Collaborator

@MarkY-LunarG MarkY-LunarG left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for the help.

@charles-lunarg charles-lunarg merged commit e90b9e0 into KhronosGroup:main Jan 31, 2023
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.

None yet

4 participants