diff options
| author | 2021-06-20 02:23:50 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:39 -0400 | |
| commit | f5db8c74405c93b52efbdef318790bd9ec4661c7 (patch) | |
| tree | b95c6eab579ef403c6c3cd454461decc4ec9e4d6 /src/video_core/renderer_vulkan | |
| parent | gl_graphics_pipeline: Port optimizations from Vulkan pipelines (diff) | |
| download | yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.gz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.xz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.zip | |
gl_shader_cache: Check previous pipeline before checking hash map
Port optimization from Vulkan.
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.h b/src/video_core/renderer_vulkan/vk_pipeline_cache.h index 42da2960b..efe5a7ed8 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h | |||
| @@ -146,12 +146,11 @@ private: | |||
| 146 | BufferCache& buffer_cache; | 146 | BufferCache& buffer_cache; |
| 147 | TextureCache& texture_cache; | 147 | TextureCache& texture_cache; |
| 148 | VideoCore::ShaderNotify& shader_notify; | 148 | VideoCore::ShaderNotify& shader_notify; |
| 149 | bool use_asynchronous_shaders{}; | ||
| 149 | 150 | ||
| 150 | GraphicsPipelineCacheKey graphics_key{}; | 151 | GraphicsPipelineCacheKey graphics_key{}; |
| 151 | GraphicsPipeline* current_pipeline{}; | 152 | GraphicsPipeline* current_pipeline{}; |
| 152 | 153 | ||
| 153 | bool use_asynchronous_shaders{}; | ||
| 154 | |||
| 155 | std::unordered_map<ComputePipelineCacheKey, std::unique_ptr<ComputePipeline>> compute_cache; | 154 | std::unordered_map<ComputePipelineCacheKey, std::unique_ptr<ComputePipeline>> compute_cache; |
| 156 | std::unordered_map<GraphicsPipelineCacheKey, std::unique_ptr<GraphicsPipeline>> graphics_cache; | 155 | std::unordered_map<GraphicsPipelineCacheKey, std::unique_ptr<GraphicsPipeline>> graphics_cache; |
| 157 | 156 | ||