Skip to content

Commit

Permalink
VIA: Fix SDK detection
Browse files Browse the repository at this point in the history
Fix the SDK detection based on Explicit layer location which was
recently updated in the SDK setup scripts.
  • Loading branch information
MarkY-LunarG committed Jan 9, 2024
1 parent b5e438d commit d5f2abc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion via/via_system_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,8 @@ ViaSystem::ViaResults ViaSystemLinux::PrintSystemSdkInfo() {
PrintTableElement("");
PrintEndTableRow();

const std::vector<const char *> explicit_layer_path_suffixes{"/etc/explicit_layer.d", "/etc/vulkan/explicit_layer.d"};
const std::vector<const char *> explicit_layer_path_suffixes{"/etc/explicit_layer.d", "/etc/vulkan/explicit_layer.d",
"/share/explicit_layer.d", "/share/vulkan/explicit_layer.d"};

for (auto &explicit_layer_path_suffix : explicit_layer_path_suffixes) {
std::string explicit_layer_path = sdk_path + explicit_layer_path_suffix;
Expand Down

0 comments on commit d5f2abc

Please sign in to comment.