diff options
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 |