diff options
author | bunnei <bunneidev@gmail.com> | 2016-04-13 05:35:36 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-04-14 05:04:53 +0200 |
commit | d7fe2784cca9c13d1f79f4063691fc4ced1c4759 (patch) | |
tree | 7bb6c9fd8e9a659369e92661478925512ac8eddd /src/video_core/shader | |
parent | shader_jit_x64.cpp: Rename JitCompiler to JitShader. (diff) | |
download | yuzu-d7fe2784cca9c13d1f79f4063691fc4ced1c4759.tar yuzu-d7fe2784cca9c13d1f79f4063691fc4ced1c4759.tar.gz yuzu-d7fe2784cca9c13d1f79f4063691fc4ced1c4759.tar.bz2 yuzu-d7fe2784cca9c13d1f79f4063691fc4ced1c4759.tar.lz yuzu-d7fe2784cca9c13d1f79f4063691fc4ced1c4759.tar.xz yuzu-d7fe2784cca9c13d1f79f4063691fc4ced1c4759.tar.zst yuzu-d7fe2784cca9c13d1f79f4063691fc4ced1c4759.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_jit_x64.cpp | 8 | ||||
-rw-r--r-- | src/video_core/shader/shader_jit_x64.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp index 9369d2fe5..b47d3beda 100644 --- a/src/video_core/shader/shader_jit_x64.cpp +++ b/src/video_core/shader/shader_jit_x64.cpp @@ -151,7 +151,7 @@ static void LogCritical(const char* msg) { LOG_CRITICAL(HW_GPU, msg); } -void JitShader::RuntimeAssert(bool condition, const char* msg) { +void JitShader::Compile_Assert(bool condition, const char* msg) { if (!condition) { ABI_CallFunctionP(reinterpret_cast<const void*>(LogCritical), const_cast<char*>(msg)); } @@ -670,7 +670,7 @@ void JitShader::Compile_MAD(Instruction instr) { } void JitShader::Compile_IF(Instruction instr) { - RuntimeAssert(instr.flow_control.dest_offset >= program_counter, "Backwards if-statements not supported"); + Compile_Assert(instr.flow_control.dest_offset >= program_counter, "Backwards if-statements not supported"); // Evaluate the "IF" condition if (instr.opcode.Value() == OpCode::Id::IFU) { @@ -701,8 +701,8 @@ void JitShader::Compile_IF(Instruction instr) { } void JitShader::Compile_LOOP(Instruction instr) { - RuntimeAssert(instr.flow_control.dest_offset >= program_counter, "Backwards loops not supported"); - RuntimeAssert(!looping, "Nested loops not supported"); + Compile_Assert(instr.flow_control.dest_offset >= program_counter, "Backwards loops not supported"); + Compile_Assert(!looping, "Nested loops not supported"); looping = true; diff --git a/src/video_core/shader/shader_jit_x64.h b/src/video_core/shader/shader_jit_x64.h index 005fbdbe3..cd6280ade 100644 --- a/src/video_core/shader/shader_jit_x64.h +++ b/src/video_core/shader/shader_jit_x64.h @@ -94,7 +94,7 @@ private: * Assertion evaluated at compile-time, but only triggered if executed at runtime. * @param msg Message to be logged if the assertion fails. */ - void RuntimeAssert(bool condition, const char* msg); + void Compile_Assert(bool condition, const char* msg); /** * Analyzes the entire shader program for `CALL` instructions before emitting any code, |