aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-01-05 16:38:07 -0500
committerGitHub <noreply@github.com>2023-01-05 16:38:07 -0500
commit1428451722718d7af450f67d7ec823b155b128d2 (patch)
treed498f1f26f66edcb3e2517cd83d1fd8f6d8f015f /src/common
parente82e3e06be0b419a4d30342a44a04d79fbbfc6cb (diff)
parente07976a22bcbfe8a2a3c166cc35c654f9b893a5d (diff)
Merge pull request #9527 from Wollnashorn/amd-cache-fix
video_core/vulkan: Implemented `VkPipelineCache` to store Vulkan pipelines
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp1
-rw-r--r--src/common/settings.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 149e621f9..2eaded242 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -200,6 +200,7 @@ void RestoreGlobalState(bool is_powered_on) {
values.use_asynchronous_shaders.SetGlobal(true);
values.use_fast_gpu_time.SetGlobal(true);
values.use_pessimistic_flushes.SetGlobal(true);
+ values.use_vulkan_driver_pipeline_cache.SetGlobal(true);
values.bg_red.SetGlobal(true);
values.bg_green.SetGlobal(true);
values.bg_blue.SetGlobal(true);
diff --git a/src/common/settings.h b/src/common/settings.h
index 5017951c5..d9e82087d 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -451,6 +451,8 @@ struct Values {
SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"};
SwitchableSetting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"};
SwitchableSetting<bool> use_pessimistic_flushes{false, "use_pessimistic_flushes"};
+ SwitchableSetting<bool> use_vulkan_driver_pipeline_cache{true,
+ "use_vulkan_driver_pipeline_cache"};
SwitchableSetting<u8> bg_red{0, "bg_red"};
SwitchableSetting<u8> bg_green{0, "bg_green"};