summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFengChen <vonchenplus@gmail.com>2022-09-10 11:09:45 +0200
committerFengChen <vonchenplus@gmail.com>2022-09-20 06:03:31 +0200
commitd4cb0eac87c9dea121a0f6bd2355fa5e6c641274 (patch)
tree292908a4b59bc6443d252fd313aaeb3da9dd2be8 /src/video_core
parentMerge pull request #8863 from german77/triggers (diff)
downloadyuzu-d4cb0eac87c9dea121a0f6bd2355fa5e6c641274.tar
yuzu-d4cb0eac87c9dea121a0f6bd2355fa5e6c641274.tar.gz
yuzu-d4cb0eac87c9dea121a0f6bd2355fa5e6c641274.tar.bz2
yuzu-d4cb0eac87c9dea121a0f6bd2355fa5e6c641274.tar.lz
yuzu-d4cb0eac87c9dea121a0f6bd2355fa5e6c641274.tar.xz
yuzu-d4cb0eac87c9dea121a0f6bd2355fa5e6c641274.tar.zst
yuzu-d4cb0eac87c9dea121a0f6bd2355fa5e6c641274.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp1
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index ddb70934c..fa05b47ff 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -63,6 +63,7 @@ Shader::RuntimeInfo MakeRuntimeInfo(const GraphicsPipelineKey& key,
Shader::RuntimeInfo info;
if (previous_program) {
info.previous_stage_stores = previous_program->info.stores;
+ info.previous_stage_legacy_stores_mapping = previous_program->info.legacy_stores_mapping;
} else {
// Mark all stores as available for vertex shaders
info.previous_stage_stores.mask.set();
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index 9708dc45e..53dda5048 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -131,6 +131,7 @@ Shader::RuntimeInfo MakeRuntimeInfo(std::span<const Shader::IR::Program> program
Shader::RuntimeInfo info;
if (previous_program) {
info.previous_stage_stores = previous_program->info.stores;
+ info.previous_stage_legacy_stores_mapping = previous_program->info.legacy_stores_mapping;
if (previous_program->is_geometry_passthrough) {
info.previous_stage_stores.mask |= previous_program->info.passthrough.mask;
}