From 1308afe2c225cee5e8096955e6107b876caecfd9 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Fri, 13 May 2016 09:38:40 +0200 Subject: Use new shader-jit signature for interpreter --- src/video_core/shader/shader_interpreter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/video_core/shader/shader_interpreter.cpp') diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp index 3a827d11f..714e8bfd5 100644 --- a/src/video_core/shader/shader_interpreter.cpp +++ b/src/video_core/shader/shader_interpreter.cpp @@ -41,11 +41,11 @@ struct CallStackElement { }; template -void RunInterpreter(UnitState& state) { +void RunInterpreter(const ShaderSetup& setup, UnitState& state, unsigned offset) { // TODO: Is there a maximal size for this? boost::container::static_vector call_stack; - u32 program_counter = g_state.regs.vs.main_offset; + u32 program_counter = offset; const auto& uniforms = g_state.vs.uniforms; const auto& swizzle_data = g_state.vs.swizzle_data; @@ -647,8 +647,8 @@ void RunInterpreter(UnitState& state) { } // Explicit instantiation -template void RunInterpreter(UnitState& state); -template void RunInterpreter(UnitState& state); +template void RunInterpreter(const ShaderSetup& setup, UnitState& state, unsigned offset); +template void RunInterpreter(const ShaderSetup& setup, UnitState& state, unsigned offset); } // namespace -- cgit v1.2.3