diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-02-20 03:30:13 -0300 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:22 -0400 |
commit | e2bc05b17d91854cbb9c0ce3647141bf7d33143e (patch) | |
tree | 96769db006b6015cd536483db98ee0697aee4992 /src/shader_recompiler/recompiler.cpp | |
parent | 6db69990da9f232e6d982cdcb69c2e27d93075cf (diff) |
shader: Add denorm flush support
Diffstat (limited to 'src/shader_recompiler/recompiler.cpp')
-rw-r--r-- | src/shader_recompiler/recompiler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shader_recompiler/recompiler.cpp b/src/shader_recompiler/recompiler.cpp index b25081e39b..527e19c272 100644 --- a/src/shader_recompiler/recompiler.cpp +++ b/src/shader_recompiler/recompiler.cpp @@ -14,14 +14,15 @@ namespace Shader { -std::pair<Info, std::vector<u32>> RecompileSPIRV(Environment& env, u32 start_address) { +std::pair<Info, std::vector<u32>> RecompileSPIRV(const Profile& profile, Environment& env, + u32 start_address) { ObjectPool<Maxwell::Flow::Block> flow_block_pool; ObjectPool<IR::Inst> inst_pool; ObjectPool<IR::Block> block_pool; Maxwell::Flow::CFG cfg{env, flow_block_pool, start_address}; IR::Program program{Maxwell::TranslateProgram(inst_pool, block_pool, env, cfg)}; - return {std::move(program.info), Backend::SPIRV::EmitSPIRV(env, program)}; + return {std::move(program.info), Backend::SPIRV::EmitSPIRV(profile, env, program)}; } } // namespace Shader |