summaryrefslogtreecommitdiff
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-20 02:23:50 -0300
committerGravatar ameerj2021-07-22 21:51:39 -0400
commitf5db8c74405c93b52efbdef318790bd9ec4661c7 (patch)
treeb95c6eab579ef403c6c3cd454461decc4ec9e4d6 /src/video_core/renderer_vulkan
parentgl_graphics_pipeline: Port optimizations from Vulkan pipelines (diff)
downloadyuzu-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.h3
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