diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-08-27 02:00:48 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-08-27 03:47:04 +0200 |
commit | 710ca3ca494e1af4ce5481f650e67c75c235be83 (patch) | |
tree | 3c4d0db9c68e59e2b1e20a802226d056a3c49a7f /src/video_core/renderer_vulkan | |
parent | DMA Pusher: Fix regression caused by guest memory optimizations (diff) | |
download | yuzu-710ca3ca494e1af4ce5481f650e67c75c235be83.tar yuzu-710ca3ca494e1af4ce5481f650e67c75c235be83.tar.gz yuzu-710ca3ca494e1af4ce5481f650e67c75c235be83.tar.bz2 yuzu-710ca3ca494e1af4ce5481f650e67c75c235be83.tar.lz yuzu-710ca3ca494e1af4ce5481f650e67c75c235be83.tar.xz yuzu-710ca3ca494e1af4ce5481f650e67c75c235be83.tar.zst yuzu-710ca3ca494e1af4ce5481f650e67c75c235be83.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 13 |
1 files changed, 13 insertions, 0 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..b1730a170 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -664,6 +664,19 @@ std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline( std::move(modules), infos); } catch (const Shader::Exception& exception) { + auto hash = key.Hash(); + size_t env_index{0}; + for (size_t index = 0; index < Maxwell::MaxShaderProgram; ++index) { + if (key.unique_hashes[index] == 0) { + continue; + } + Shader::Environment& env{*envs[env_index]}; + ++env_index; + + 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); + env.Dump(hash, key.unique_hashes[index]); + } LOG_ERROR(Render_Vulkan, "{}", exception.what()); return nullptr; } |