summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-14 20:42:47 +0200
committerbunnei <bunneidev@gmail.com>2018-04-14 22:01:41 +0200
commiteabeedf6af1e5277074ca460fa48390195b21329 (patch)
tree37e66ab6dd84011146c87888fee9ba1951646507
parentshaders: Fix GCC and clang build issues. (diff)
downloadyuzu-eabeedf6af1e5277074ca460fa48390195b21329.tar
yuzu-eabeedf6af1e5277074ca460fa48390195b21329.tar.gz
yuzu-eabeedf6af1e5277074ca460fa48390195b21329.tar.bz2
yuzu-eabeedf6af1e5277074ca460fa48390195b21329.tar.lz
yuzu-eabeedf6af1e5277074ca460fa48390195b21329.tar.xz
yuzu-eabeedf6af1e5277074ca460fa48390195b21329.tar.zst
yuzu-eabeedf6af1e5277074ca460fa48390195b21329.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 96d50dd9e..6251a4be2 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -158,7 +158,7 @@ private:
return "input_attribute_" + std::to_string(index);
}
- LOG_ERROR(HW_GPU, "Unhandled input attribute: 0x%02x", index);
+ LOG_CRITICAL(HW_GPU, "Unhandled input attribute: 0x%02x", index);
UNREACHABLE();
}
@@ -175,7 +175,7 @@ private:
return "output_attribute_" + std::to_string(index);
}
- LOG_ERROR(HW_GPU, "Unhandled output attribute: 0x%02x", index);
+ LOG_CRITICAL(HW_GPU, "Unhandled output attribute: 0x%02x", index);
UNREACHABLE();
}
}
@@ -267,9 +267,9 @@ private:
break;
}
default: {
- LOG_ERROR(HW_GPU, "Unhandled arithmetic instruction: 0x%02x (%s): 0x%08x",
- (int)instr.opcode.EffectiveOpCode(), OpCode::GetInfo(instr.opcode).name,
- instr.hex);
+ LOG_CRITICAL(HW_GPU, "Unhandled arithmetic instruction: 0x%02x (%s): 0x%08x",
+ static_cast<unsigned>(instr.opcode.EffectiveOpCode()),
+ OpCode::GetInfo(instr.opcode).name.c_str(), instr.hex);
throw DecompileFail("Unhandled instruction");
break;
}
@@ -296,9 +296,9 @@ private:
}
default: {
- LOG_ERROR(HW_GPU, "Unhandled arithmetic FFMA instruction: 0x%02x (%s): 0x%08x",
- (int)instr.opcode.EffectiveOpCode(), OpCode::GetInfo(instr.opcode).name,
- instr.hex);
+ LOG_CRITICAL(HW_GPU, "Unhandled arithmetic FFMA instruction: 0x%02x (%s): 0x%08x",
+ static_cast<unsigned>(instr.opcode.EffectiveOpCode()),
+ OpCode::GetInfo(instr.opcode).name.c_str(), instr.hex);
throw DecompileFail("Unhandled instruction");
break;
}
@@ -321,9 +321,9 @@ private:
break;
}
default: {
- LOG_ERROR(HW_GPU, "Unhandled memory instruction: 0x%02x (%s): 0x%08x",
- (int)instr.opcode.EffectiveOpCode(), OpCode::GetInfo(instr.opcode).name,
- instr.hex);
+ LOG_CRITICAL(HW_GPU, "Unhandled memory instruction: 0x%02x (%s): 0x%08x",
+ static_cast<unsigned>(instr.opcode.EffectiveOpCode()),
+ OpCode::GetInfo(instr.opcode).name.c_str(), instr.hex);
throw DecompileFail("Unhandled instruction");
break;
}
@@ -340,10 +340,10 @@ private:
}
default: {
- LOG_ERROR(HW_GPU, "Unhandled instruction: 0x%02x (%s): 0x%08x",
- (int)instr.opcode.EffectiveOpCode(),
- OpCode::GetInfo(instr.opcode).name.c_str(), instr.hex);
- // throw DecompileFail("Unhandled instruction");
+ LOG_CRITICAL(HW_GPU, "Unhandled instruction: 0x%02x (%s): 0x%08x",
+ static_cast<unsigned>(instr.opcode.EffectiveOpCode()),
+ OpCode::GetInfo(instr.opcode).name.c_str(), instr.hex);
+ throw DecompileFail("Unhandled instruction");
break;
}
}