summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/maxwell/translate_program.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-23 08:31:49 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:39 +0200
commitecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f (patch)
tree8606cb9a6a0f855e16e86cd96e434796cf31e1d3 /src/shader_recompiler/frontend/maxwell/translate_program.cpp
parentshader: Unify shader stage types (diff)
downloadyuzu-ecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f.tar
yuzu-ecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f.tar.gz
yuzu-ecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f.tar.bz2
yuzu-ecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f.tar.lz
yuzu-ecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f.tar.xz
yuzu-ecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f.tar.zst
yuzu-ecd6b4356b3a12c0963c4fd6ec6d273a7064ac2f.zip
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate_program.cpp')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate_program.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
index c084f3400..a8b727f1a 100644
--- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
@@ -7,6 +7,7 @@
#include <ranges>
#include <vector>
+#include "common/settings.h"
#include "shader_recompiler/exception.h"
#include "shader_recompiler/frontend/ir/basic_block.h"
#include "shader_recompiler/frontend/ir/post_order.h"
@@ -164,7 +165,9 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
Optimization::ConstantPropagationPass(program);
Optimization::DeadCodeEliminationPass(program);
- Optimization::VerificationPass(program);
+ if (Settings::values.renderer_debug) {
+ Optimization::VerificationPass(program);
+ }
Optimization::CollectShaderInfoPass(env, program);
CollectInterpolationInfo(env, program);
AddNVNStorageBuffers(program);
@@ -200,7 +203,9 @@ IR::Program MergeDualVertexPrograms(IR::Program& vertex_a, IR::Program& vertex_b
Optimization::JoinTextureInfo(result.info, vertex_b.info);
Optimization::JoinStorageInfo(result.info, vertex_b.info);
Optimization::DeadCodeEliminationPass(result);
- Optimization::VerificationPass(result);
+ if (Settings::values.renderer_debug) {
+ Optimization::VerificationPass(result);
+ }
Optimization::CollectShaderInfoPass(env_vertex_b, result);
return result;
}