Просмотр исходного кода

shader_jit_x64: Rename RuntimeAssert to Compile_Assert.

bunnei 10 лет назад
Родитель
Сommit
d7fe2784cc
2 измененных файлов с 5 добавлено и 5 удалено
  1. 4 4
      src/video_core/shader/shader_jit_x64.cpp
  2. 1 1
      src/video_core/shader/shader_jit_x64.h

+ 4 - 4
src/video_core/shader/shader_jit_x64.cpp

@@ -151,7 +151,7 @@ static void LogCritical(const char* msg) {
     LOG_CRITICAL(HW_GPU, 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) {
     if (!condition) {
         ABI_CallFunctionP(reinterpret_cast<const void*>(LogCritical), const_cast<char*>(msg));
         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) {
 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
     // Evaluate the "IF" condition
     if (instr.opcode.Value() == OpCode::Id::IFU) {
     if (instr.opcode.Value() == OpCode::Id::IFU) {
@@ -701,8 +701,8 @@ void JitShader::Compile_IF(Instruction instr) {
 }
 }
 
 
 void JitShader::Compile_LOOP(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;
     looping = true;
 
 

+ 1 - 1
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.
      * Assertion evaluated at compile-time, but only triggered if executed at runtime.
      * @param msg Message to be logged if the assertion fails.
      * @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,
      * Analyzes the entire shader program for `CALL` instructions before emitting any code,