diff options
| author | 2022-12-30 14:50:07 +0100 | |
|---|---|---|
| committer | 2023-01-05 21:02:44 +0100 | |
| commit | 16809c1fa7e2b4fb798749030645deaec79a2381 (patch) | |
| tree | e43ef31843da210165c529494652014a660268e6 /src/common | |
| parent | Merge pull request #9557 from FernandoS27/ooops-i-killed-the-shitty-drivers (diff) | |
| download | yuzu-16809c1fa7e2b4fb798749030645deaec79a2381.tar.gz yuzu-16809c1fa7e2b4fb798749030645deaec79a2381.tar.xz yuzu-16809c1fa7e2b4fb798749030645deaec79a2381.zip | |
video_core/vulkan: Added `VkPipelineCache` to store Vulkan pipelines
As an optional feature which can be enabled in the advanced graphics configuration, all pipelines that get built at the initial shader loading are stored in a VkPipelineCache object and are dumped to the disk.
These vendor specific pipeline cache files are located at `/shader/GAME_ID/vulkan_pipelines.bin`. This feature was mainly added because of an issue with the AMD driver (see yuzu-emu#8507) causing invalidation of the cache files the driver builds automatically.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/settings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/settings.h b/src/common/settings.h index 5017951c5..0d58d6171 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{false, | ||
| 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"}; |