diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-21 03:12:06 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-05 00:52:52 +0200 |
commit | 2e9a810423ef36178ac3947f8feeb7b9a5b29bce (patch) | |
tree | cad196eab22eafd8766a51e7086b8812e510b1c6 /src/video_core/renderer_vulkan | |
parent | vk_shader_compiler: Implement the decompiler in SPIR-V (diff) | |
download | yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.gz yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.bz2 yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.lz yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.xz yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.tar.zst yuzu-2e9a810423ef36178ac3947f8feeb7b9a5b29bce.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 505e49570..72fbc69c4 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -1667,7 +1667,8 @@ public: } void operator()(VideoCommon::Shader::ExprVar& expr) { - current_id = decomp.Emit(decomp.OpLoad(decomp.t_bool, decomp.flow_variables.at(expr.var_index))); + current_id = + decomp.Emit(decomp.OpLoad(decomp.t_bool, decomp.flow_variables.at(expr.var_index))); } void operator()(VideoCommon::Shader::ExprBoolean& expr) { @@ -1749,7 +1750,8 @@ public: const Id loop_end_block = decomp.OpLabel(); current_loop_exit = endloop_label; decomp.Emit(loop_label); - decomp.Emit(decomp.OpLoopMerge(endloop_label, loop_end_block, spv::LoopControlMask::MaskNone)); + decomp.Emit( + decomp.OpLoopMerge(endloop_label, loop_end_block, spv::LoopControlMask::MaskNone)); decomp.Emit(decomp.OpBranch(loop_start_block)); decomp.Emit(loop_start_block); ASTNode current = ast.nodes.GetFirst(); |