diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-09-18 02:26:33 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:30 +0100 |
commit | b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96 (patch) | |
tree | 7bb9f3d8b71d370c5465b0a8a736013290f2acab /src/shader_recompiler/frontend/maxwell/translate_program.cpp | |
parent | image_info: Mark MSAA textures as non-rescalable (diff) | |
download | yuzu-b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96.tar yuzu-b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96.tar.gz yuzu-b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96.tar.bz2 yuzu-b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96.tar.lz yuzu-b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96.tar.xz yuzu-b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96.tar.zst yuzu-b3a9c8f108d90234c7e5e88b41f8e4bc9c163d96.zip |
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate_program.cpp')
-rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate_program.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp index 795f5cf08..743fb2420 100644 --- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp @@ -178,10 +178,12 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo Optimization::GlobalMemoryToStorageBufferPass(program); Optimization::TexturePass(env, program); + Optimization::ConstantPropagationPass(program); + if (Settings::values.resolution_info.active) { Optimization::RescalingPass(program); } - Optimization::ConstantPropagationPass(program); + Optimization::DeadCodeEliminationPass(program); if (Settings::values.renderer_debug) { Optimization::VerificationPass(program); |