Clarify the VK_LOADER_DRIVERS_SELECT example
authorLudovico de Nittis <ludovico.denittis@collabora.com>
Tue, 31 Jan 2023 14:58:48 +0000 (15:58 +0100)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 31 Jan 2023 17:01:42 +0000 (10:01 -0700)
commite90b9e013a215df77f5dd446e753266adc52d6a7
treeab38b9980ac59955c3907dd8915caa01d358ec2b
parentdda7872300933903fdbf86b213bb77bb8955344d
Clarify the VK_LOADER_DRIVERS_SELECT example

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>
docs/LoaderInterfaceArchitecture.md
tests/loader_envvar_tests.cpp