diff options
| author | bunnei <bunneidev@gmail.com> | 2016-03-26 21:02:15 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2016-04-13 23:04:47 -0400 |
| commit | a5a74eb121e0586706c3196d450c088280f996a5 (patch) | |
| tree | 1ed5030e828e221d2c34596effaa1e680a678391 /src/video_core/shader/shader_jit_x64.cpp | |
| parent | c9d10de644078a29e2310791ee221f3bc916e923 (diff) | |
shader_jit_x64: Specify shader main offset at runtime.
Diffstat (limited to 'src/video_core/shader/shader_jit_x64.cpp')
| -rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index 3da4e51fa..cbdc1e40f 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp @@ -838,9 +838,7 @@ void JitCompiler::Compile() { fixup_branches.clear(); // Jump to start of the shader program - if (g_state.regs.vs.main_offset != 0) { - fixup_branches.push_back({ J(true), g_state.regs.vs.main_offset }); - } + JMPptr(R(ABI_PARAM2)); // Compile entire program Compile_Block(static_cast<unsigned>(g_state.vs.program_code.size())); |
