aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorJohn Drinkwater <john@nextraweb.com>2016-08-01 17:00:00 +0100
committerMark Young <marky@lunarg.com>2016-08-04 07:39:03 -0600
commit3e58ec2944344cdbd90ef54cb9e2a2e83dc061a6 (patch)
treedf0f6a9ea10902bb7e2c060f69c139ddfde10743 /layers/core_validation.cpp
parent7adce38b9fdc72d67105554235faecc2ef075be3 (diff)
downloadusermoji-3e58ec2944344cdbd90ef54cb9e2a2e83dc061a6.tar.xz
loader: support manifests in XDG locations
Some users set the environment variable XDG_DATA_HOME to relocate ~/.local/share/ to a more friendly location and so it is not wise to look solely at that location. This change adds basic support for that env var without changing the behaviour for typical users. If XDG_DATA_HOME is defined, the loader checks XDG_DATA_HOME/vulkan/..., if HOME is defined the loader will check HOME/.local/share/vulkan/..., and with neither it skips looking for user manifests. loader_get_manifest_files() now takes a relative location inside the config path eg `/vulkan/implicit_layer.d` and appends that onto the preferred location. vk_loader_platform.h Linux defines got minor adjustments to support this change, with an added bonus of being more readable. Change-Id: I44e8a99f2a984f94dc33cdda122e6c417d3a3653
Diffstat (limited to 'layers/core_validation.cpp')
0 files changed, 0 insertions, 0 deletions