diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-08-27 01:14:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 01:14:25 +0200 |
commit | c5105b65d5b48b3a3f35c59c5faa3b5372e923b6 (patch) | |
tree | dcb2704559d8f1d79b1cd65238747626384cdac6 /src/video_core/renderer_vulkan | |
parent | Merge pull request #11338 from comex/warning-fixes-august-2023 (diff) | |
parent | Mark decompiled macros as decompiled on dump, dump shaders after translation (diff) | |
download | yuzu-c5105b65d5b48b3a3f35c59c5faa3b5372e923b6.tar yuzu-c5105b65d5b48b3a3f35c59c5faa3b5372e923b6.tar.gz yuzu-c5105b65d5b48b3a3f35c59c5faa3b5372e923b6.tar.bz2 yuzu-c5105b65d5b48b3a3f35c59c5faa3b5372e923b6.tar.lz yuzu-c5105b65d5b48b3a3f35c59c5faa3b5372e923b6.tar.xz yuzu-c5105b65d5b48b3a3f35c59c5faa3b5372e923b6.tar.zst yuzu-c5105b65d5b48b3a3f35c59c5faa3b5372e923b6.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index c1314ca99..fe432dfe1 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -611,9 +611,6 @@ std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline( const u32 cfg_offset{static_cast<u32>(env.StartAddress() + sizeof(Shader::ProgramHeader))}; Shader::Maxwell::Flow::CFG cfg(env, pools.flow_block, cfg_offset, index == 0); - if (Settings::values.dump_shaders) { - env.Dump(hash, key.unique_hashes[index]); - } if (!uses_vertex_a || index != 1) { // Normal path programs[index] = TranslateProgram(pools.inst, pools.block, env, cfg, host_info); @@ -624,6 +621,10 @@ std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline( programs[index] = MergeDualVertexPrograms(program_va, program_vb, env); } + if (Settings::values.dump_shaders) { + env.Dump(hash, key.unique_hashes[index]); + } + if (programs[index].info.requires_layer_emulation) { layer_source_program = &programs[index]; } |