summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/recompiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/recompiler.cpp')
-rw-r--r--src/shader_recompiler/recompiler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shader_recompiler/recompiler.cpp b/src/shader_recompiler/recompiler.cpp
index b25081e39..527e19c27 100644
--- a/src/shader_recompiler/recompiler.cpp
+++ b/src/shader_recompiler/recompiler.cpp
@@ -14,14 +14,15 @@
14 14
15namespace Shader { 15namespace Shader {
16 16
17std::pair<Info, std::vector<u32>> RecompileSPIRV(Environment& env, u32 start_address) { 17std::pair<Info, std::vector<u32>> RecompileSPIRV(const Profile& profile, Environment& env,
18 u32 start_address) {
18 ObjectPool<Maxwell::Flow::Block> flow_block_pool; 19 ObjectPool<Maxwell::Flow::Block> flow_block_pool;
19 ObjectPool<IR::Inst> inst_pool; 20 ObjectPool<IR::Inst> inst_pool;
20 ObjectPool<IR::Block> block_pool; 21 ObjectPool<IR::Block> block_pool;
21 22
22 Maxwell::Flow::CFG cfg{env, flow_block_pool, start_address}; 23 Maxwell::Flow::CFG cfg{env, flow_block_pool, start_address};
23 IR::Program program{Maxwell::TranslateProgram(inst_pool, block_pool, env, cfg)}; 24 IR::Program program{Maxwell::TranslateProgram(inst_pool, block_pool, env, cfg)};
24 return {std::move(program.info), Backend::SPIRV::EmitSPIRV(env, program)}; 25 return {std::move(program.info), Backend::SPIRV::EmitSPIRV(profile, env, program)};
25} 26}
26 27
27} // namespace Shader 28} // namespace Shader