Skip to content
Snippets Groups Projects
Commit 8b28dc55 authored by bunnei's avatar bunnei
Browse files

gl_shader_decompiler: Cleanup error logging.

parent e1630c4d
No related branches found
No related tags found
No related merge requests found
...@@ -342,7 +342,7 @@ private: ...@@ -342,7 +342,7 @@ private:
// Decoding failure // Decoding failure
if (!opcode) { if (!opcode) {
NGLOG_CRITICAL(HW_GPU, "Unhandled instruction: {}", instr.value); NGLOG_CRITICAL(HW_GPU, "Unhandled instruction: {0:x}", instr.value);
UNREACHABLE(); UNREACHABLE();
} }
...@@ -425,16 +425,14 @@ private: ...@@ -425,16 +425,14 @@ private:
SetDest(0, dest, "min(" + op_a + "," + op_b + ")", 1, 1, instr.alu.abs_d); SetDest(0, dest, "min(" + op_a + "," + op_b + ")", 1, 1, instr.alu.abs_d);
break; break;
default: default:
NGLOG_CRITICAL(HW_GPU, "Unhandled MUFU sub op: {}", NGLOG_CRITICAL(HW_GPU, "Unhandled MUFU sub op: {0:x}",
static_cast<unsigned>(instr.sub_op.Value())); static_cast<unsigned>(instr.sub_op.Value()));
UNREACHABLE(); UNREACHABLE();
} }
break; break;
} }
default: { default: {
NGLOG_CRITICAL(HW_GPU, "Unhandled arithmetic instruction: {} ({}): {}", NGLOG_CRITICAL(HW_GPU, "Unhandled arithmetic instruction: {}", opcode->GetName());
static_cast<unsigned>(opcode->GetId()), opcode->GetName(),
instr.value);
UNREACHABLE(); UNREACHABLE();
} }
} }
...@@ -468,9 +466,7 @@ private: ...@@ -468,9 +466,7 @@ private:
break; break;
} }
default: { default: {
NGLOG_CRITICAL(HW_GPU, "Unhandled FFMA instruction: {} ({}): {}", NGLOG_CRITICAL(HW_GPU, "Unhandled FFMA instruction: {}", opcode->GetName());
static_cast<unsigned>(opcode->GetId()), opcode->GetName(),
instr.value);
UNREACHABLE(); UNREACHABLE();
} }
} }
...@@ -513,9 +509,7 @@ private: ...@@ -513,9 +509,7 @@ private:
break; break;
} }
default: { default: {
NGLOG_CRITICAL(HW_GPU, "Unhandled memory instruction: {} ({}): {}", NGLOG_CRITICAL(HW_GPU, "Unhandled memory instruction: {}", opcode->GetName());
static_cast<unsigned>(opcode->GetId()), opcode->GetName(),
instr.value);
UNREACHABLE(); UNREACHABLE();
} }
} }
...@@ -592,9 +586,7 @@ private: ...@@ -592,9 +586,7 @@ private:
break; break;
} }
default: { default: {
NGLOG_CRITICAL(HW_GPU, "Unhandled instruction: {} ({}): {}", NGLOG_CRITICAL(HW_GPU, "Unhandled instruction: {}", opcode->GetName());
static_cast<unsigned>(opcode->GetId()), opcode->GetName(),
instr.value);
UNREACHABLE(); UNREACHABLE();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment