diff options
author | bunnei <bunneidev@gmail.com> | 2016-03-16 18:18:51 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-03-16 18:18:51 +0100 |
commit | 96cafbe4cc4a1d5cae668a6ba174bead35e2a810 (patch) | |
tree | 6d6c47cec0883c62c5cc38651e5a0491170d9a9a /src/video_core/shader/shader_jit_x64.cpp | |
parent | Merge pull request #1479 from JayFoxRox/mad-encoding (diff) | |
parent | shader_jit_x64: Clear cache after code space fills up. (diff) | |
download | yuzu-96cafbe4cc4a1d5cae668a6ba174bead35e2a810.tar yuzu-96cafbe4cc4a1d5cae668a6ba174bead35e2a810.tar.gz yuzu-96cafbe4cc4a1d5cae668a6ba174bead35e2a810.tar.bz2 yuzu-96cafbe4cc4a1d5cae668a6ba174bead35e2a810.tar.lz yuzu-96cafbe4cc4a1d5cae668a6ba174bead35e2a810.tar.xz yuzu-96cafbe4cc4a1d5cae668a6ba174bead35e2a810.tar.zst yuzu-96cafbe4cc4a1d5cae668a6ba174bead35e2a810.zip |
Diffstat (limited to 'src/video_core/shader/shader_jit_x64.cpp')
-rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index 443bcbbef..dffe051ef 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp @@ -645,7 +645,8 @@ void JitCompiler::Compile_MAD(Instruction instr) { } void JitCompiler::Compile_IF(Instruction instr) { - ASSERT_MSG(instr.flow_control.dest_offset > *offset_ptr, "Backwards if-statements not supported"); + ASSERT_MSG(instr.flow_control.dest_offset > *offset_ptr, "Backwards if-statements (%d -> %d) not supported", + *offset_ptr, instr.flow_control.dest_offset.Value()); // Evaluate the "IF" condition if (instr.opcode.Value() == OpCode::Id::IFU) { @@ -676,7 +677,8 @@ void JitCompiler::Compile_IF(Instruction instr) { } void JitCompiler::Compile_LOOP(Instruction instr) { - ASSERT_MSG(instr.flow_control.dest_offset > *offset_ptr, "Backwards loops not supported"); + ASSERT_MSG(instr.flow_control.dest_offset > *offset_ptr, "Backwards loops (%d -> %d) not supported", + *offset_ptr, instr.flow_control.dest_offset.Value()); ASSERT_MSG(!looping, "Nested loops not supported"); looping = true; @@ -704,7 +706,8 @@ void JitCompiler::Compile_LOOP(Instruction instr) { } void JitCompiler::Compile_JMP(Instruction instr) { - ASSERT_MSG(instr.flow_control.dest_offset > *offset_ptr, "Backwards jumps not supported"); + ASSERT_MSG(instr.flow_control.dest_offset > *offset_ptr, "Backwards jumps (%d -> %d) not supported", + *offset_ptr, instr.flow_control.dest_offset.Value()); if (instr.opcode.Value() == OpCode::Id::JMPC) Compile_EvaluateCondition(instr); @@ -748,7 +751,7 @@ void JitCompiler::Compile_NextInstr(unsigned* offset) { } else { // Unhandled instruction LOG_CRITICAL(HW_GPU, "Unhandled instruction: 0x%02x (0x%08x)", - instr.opcode.Value().EffectiveOpCode(), instr.hex); + instr.opcode.Value().EffectiveOpCode(), instr.hex); } } @@ -787,7 +790,7 @@ CompiledShader* JitCompiler::Compile() { } JitCompiler::JitCompiler() { - AllocCodeSpace(1024 * 1024 * 4); + AllocCodeSpace(jit_cache_size); } void JitCompiler::Clear() { |