summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend
diff options
context:
space:
mode:
authorMatías Locatti <42481638+goldenx86@users.noreply.github.com>2023-06-12 21:50:59 +0200
committerGitHub <noreply@github.com>2023-06-12 21:50:59 +0200
commit42b2bc204f13966fd08af07dd08448bbefe14afa (patch)
tree5676f2516f33f855a02df13e89d401c8067fae21 /src/shader_recompiler/frontend
parentMerge pull request #10693 from liamwhite/f64-to-f32 (diff)
parentshader_recompiler: remove barriers in conditional control flow when device lacks support (diff)
downloadyuzu-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.cpp3
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);