diff options
author | Matías Locatti <42481638+goldenx86@users.noreply.github.com> | 2023-06-12 21:50:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 21:50:59 +0200 |
commit | 42b2bc204f13966fd08af07dd08448bbefe14afa (patch) | |
tree | 5676f2516f33f855a02df13e89d401c8067fae21 /src/shader_recompiler/frontend | |
parent | Merge pull request #10693 from liamwhite/f64-to-f32 (diff) | |
parent | shader_recompiler: remove barriers in conditional control flow when device lacks support (diff) | |
download | yuzu-42b2bc204f13966fd08af07dd08448bbefe14afa.tar yuzu-42b2bc204f13966fd08af07dd08448bbefe14afa.tar.gz yuzu-42b2bc204f13966fd08af07dd08448bbefe14afa.tar.bz2 yuzu-42b2bc204f13966fd08af07dd08448bbefe14afa.tar.lz yuzu-42b2bc204f13966fd08af07dd08448bbefe14afa.tar.xz yuzu-42b2bc204f13966fd08af07dd08448bbefe14afa.tar.zst yuzu-42b2bc204f13966fd08af07dd08448bbefe14afa.zip |
Diffstat (limited to 'src/shader_recompiler/frontend')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate_program.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp index 00d00e9f5..928b35561 100644 --- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp @@ -289,6 +289,9 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo if (!host_info.support_int64) { Optimization::LowerInt64ToInt32(program); } + if (!host_info.support_conditional_barrier) { + Optimization::ConditionalBarrierPass(program); + } Optimization::SsaRewritePass(program); Optimization::ConstantPropagationPass(env, program); |