diff options
author | bunnei <bunneidev@gmail.com> | 2020-01-04 20:05:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-04 20:05:17 +0100 |
commit | cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8 (patch) | |
tree | e60c9786f929a2b35c7f23ee7a7dbebcc14eb7a7 /src/video_core/renderer_vulkan | |
parent | Merge pull request #3247 from FernandoS27/remap-fix (diff) | |
parent | Shader_IR: Address Feedback (diff) | |
download | yuzu-cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8.tar yuzu-cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8.tar.gz yuzu-cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8.tar.bz2 yuzu-cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8.tar.lz yuzu-cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8.tar.xz yuzu-cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8.tar.zst yuzu-cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index a8baf91de..8fe852ce8 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -954,6 +954,10 @@ private: Expression Visit(const Node& node) { if (const auto operation = std::get_if<OperationNode>(&*node)) { + if (const auto amend_index = operation->GetAmendIndex()) { + [[maybe_unused]] const Type type = Visit(ir.GetAmendNode(*amend_index)).type; + ASSERT(type == Type::Void); + } const auto operation_index = static_cast<std::size_t>(operation->GetCode()); const auto decompiler = operation_decompilers[operation_index]; if (decompiler == nullptr) { @@ -1142,6 +1146,10 @@ private: } if (const auto conditional = std::get_if<ConditionalNode>(&*node)) { + if (const auto amend_index = conditional->GetAmendIndex()) { + [[maybe_unused]] const Type type = Visit(ir.GetAmendNode(*amend_index)).type; + ASSERT(type == Type::Void); + } // It's invalid to call conditional on nested nodes, use an operation instead const Id true_label = OpLabel(); const Id skip_label = OpLabel(); |