Skip to content

Commit

Permalink
vkconfig3: Loader workaround for disables layers
Browse files Browse the repository at this point in the history
Change-Id: Ifefdf194d856b03060fa7355d28bfe7322f479e6
  • Loading branch information
christophe-lunarg committed Nov 4, 2024
1 parent 94e6485 commit 65a1f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
4 changes: 2 additions & 2 deletions vkconfig_core/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <string>
#include <algorithm>

static void AddApplicationEnabledParameters(std::vector<Parameter>& parameters) {
static void AddApplicationEnabledParameters(std::vector<Parameter>& parameters, LayerControl default_control) {
bool found_applications_api = false;
for (auto paramater : parameters) {
if (paramater.builtin != LAYER_BUILTIN_API) {
Expand Down Expand Up @@ -495,7 +495,7 @@ void Configuration::GatherParameters(const LayerManager& layers) {
gathered_parameters.push_back(parameter);
}

::AddApplicationEnabledParameters(gathered_parameters);
::AddApplicationEnabledParameters(gathered_parameters, this->default_control);

::OrderParameter(gathered_parameters, layers);

Expand Down
26 changes: 0 additions & 26 deletions vkconfig_core/configurations/3.0.0/Disable All Vulkan Layers.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,6 @@
"perf",
"layer",
"driver"
],
"layers": [
{
"builtin": "unordered_layer_location",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS"
],
"rank": -1,
"settings": [
],
"version": "latest"
},
{
"builtin": "application_enabled_layers",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS"
],
"rank": -1,
"settings": [
],
"version": "latest"
}
]
}
}

0 comments on commit 65a1f86

Please sign in to comment.