diff options
| author | 2023-01-05 16:38:07 -0500 | |
|---|---|---|
| committer | 2023-01-05 16:38:07 -0500 | |
| commit | 1428451722718d7af450f67d7ec823b155b128d2 (patch) | |
| tree | d498f1f26f66edcb3e2517cd83d1fd8f6d8f015f /src/common | |
| parent | Merge pull request #9557 from FernandoS27/ooops-i-killed-the-shitty-drivers (diff) | |
| parent | video_core/vulkan: Vulkan driver pipelines now contain cache version (diff) | |
| download | yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar.gz yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar.xz yuzu-1428451722718d7af450f67d7ec823b155b128d2.zip | |
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.cpp | 1 | ||||
| -rw-r--r-- | src/common/settings.h | 2 |
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) { | |||
| 200 | values.use_asynchronous_shaders.SetGlobal(true); | 200 | values.use_asynchronous_shaders.SetGlobal(true); |
| 201 | values.use_fast_gpu_time.SetGlobal(true); | 201 | values.use_fast_gpu_time.SetGlobal(true); |
| 202 | values.use_pessimistic_flushes.SetGlobal(true); | 202 | values.use_pessimistic_flushes.SetGlobal(true); |
| 203 | values.use_vulkan_driver_pipeline_cache.SetGlobal(true); | ||
| 203 | values.bg_red.SetGlobal(true); | 204 | values.bg_red.SetGlobal(true); |
| 204 | values.bg_green.SetGlobal(true); | 205 | values.bg_green.SetGlobal(true); |
| 205 | values.bg_blue.SetGlobal(true); | 206 | 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 { | |||
| 451 | SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; | 451 | SwitchableSetting<bool> use_asynchronous_shaders{false, "use_asynchronous_shaders"}; |
| 452 | SwitchableSetting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"}; | 452 | SwitchableSetting<bool> use_fast_gpu_time{true, "use_fast_gpu_time"}; |
| 453 | SwitchableSetting<bool> use_pessimistic_flushes{false, "use_pessimistic_flushes"}; | 453 | SwitchableSetting<bool> use_pessimistic_flushes{false, "use_pessimistic_flushes"}; |
| 454 | SwitchableSetting<bool> use_vulkan_driver_pipeline_cache{true, | ||
| 455 | "use_vulkan_driver_pipeline_cache"}; | ||
| 454 | 456 | ||
| 455 | SwitchableSetting<u8> bg_red{0, "bg_red"}; | 457 | SwitchableSetting<u8> bg_red{0, "bg_red"}; |
| 456 | SwitchableSetting<u8> bg_green{0, "bg_green"}; | 458 | SwitchableSetting<u8> bg_green{0, "bg_green"}; |