log: replace all NGLOG with LOG
This commit is contained in:
parent
fde415968e
commit
7c5a76e58b
152 changed files with 1541 additions and 1541 deletions
|
@ -173,7 +173,7 @@ void ProcessTriangle(const OutputVertex& v0, const OutputVertex& v1, const Outpu
|
|||
|
||||
InitScreenCoordinates(vtx2);
|
||||
|
||||
NGLOG_TRACE(
|
||||
LOG_TRACE(
|
||||
Render_Software,
|
||||
"Triangle {}/{} at position ({:.3}, {:.3}, {:.3}, {:.3f}), "
|
||||
"({:.3}, {:.3}, {:.3}, {:.3}), ({:.3}, {:.3}, {:.3}, {:.3}) and "
|
||||
|
|
|
@ -57,7 +57,7 @@ void DrawPixel(int x, int y, const Math::Vec4<u8>& color) {
|
|||
break;
|
||||
|
||||
default:
|
||||
NGLOG_CRITICAL(Render_Software, "Unknown framebuffer color format {:x}",
|
||||
LOG_CRITICAL(Render_Software, "Unknown framebuffer color format {:x}",
|
||||
static_cast<u32>(framebuffer.color_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ const Math::Vec4<u8> GetPixel(int x, int y) {
|
|||
return Color::DecodeRGBA4(src_pixel);
|
||||
|
||||
default:
|
||||
NGLOG_CRITICAL(Render_Software, "Unknown framebuffer color format {:x}",
|
||||
LOG_CRITICAL(Render_Software, "Unknown framebuffer color format {:x}",
|
||||
static_cast<u32>(framebuffer.color_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ u32 GetDepth(int x, int y) {
|
|||
case FramebufferRegs::DepthFormat::D24S8:
|
||||
return Color::DecodeD24S8(src_pixel).x;
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
LOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
return 0;
|
||||
|
@ -149,7 +149,7 @@ u8 GetStencil(int x, int y) {
|
|||
return Color::DecodeD24S8(src_pixel).y;
|
||||
|
||||
default:
|
||||
NGLOG_WARNING(
|
||||
LOG_WARNING(
|
||||
HW_GPU,
|
||||
"GetStencil called for function which doesn't have a stencil component (format {})",
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
|
@ -185,7 +185,7 @@ void SetDepth(int x, int y, u32 value) {
|
|||
break;
|
||||
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
LOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
|
@ -217,7 +217,7 @@ void SetStencil(int x, int y, u8 value) {
|
|||
break;
|
||||
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
LOG_CRITICAL(HW_GPU, "Unimplemented depth format {}",
|
||||
static_cast<u32>(framebuffer.depth_format.Value()));
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
|
@ -253,7 +253,7 @@ u8 PerformStencilAction(FramebufferRegs::StencilAction action, u8 old_stencil, u
|
|||
return old_stencil - 1;
|
||||
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unknown stencil action {:x}", (int)action);
|
||||
LOG_CRITICAL(HW_GPU, "Unknown stencil action {:x}", (int)action);
|
||||
UNIMPLEMENTED();
|
||||
return 0;
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ Math::Vec4<u8> EvaluateBlendEquation(const Math::Vec4<u8>& src, const Math::Vec4
|
|||
break;
|
||||
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unknown RGB blend equation 0x{:x}", static_cast<u8>(equation));
|
||||
LOG_CRITICAL(HW_GPU, "Unknown RGB blend equation 0x{:x}", static_cast<u8>(equation));
|
||||
UNIMPLEMENTED();
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ std::tuple<Math::Vec4<u8>, Math::Vec4<u8>> ComputeFragmentsColors(
|
|||
surface_normal = Math::MakeVec(0.0f, 0.0f, 1.0f);
|
||||
surface_tangent = perturbation;
|
||||
} else {
|
||||
NGLOG_ERROR(HW_GPU, "Unknown bump mode {}",
|
||||
LOG_ERROR(HW_GPU, "Unknown bump mode {}",
|
||||
static_cast<u32>(lighting.config0.bump_mode.Value()));
|
||||
}
|
||||
} else {
|
||||
|
@ -143,7 +143,7 @@ std::tuple<Math::Vec4<u8>, Math::Vec4<u8>> ComputeFragmentsColors(
|
|||
}
|
||||
break;
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unknown lighting LUT input {}\n", static_cast<u32>(input));
|
||||
LOG_CRITICAL(HW_GPU, "Unknown lighting LUT input {}\n", static_cast<u32>(input));
|
||||
UNIMPLEMENTED();
|
||||
result = 0.0f;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ static float GetShiftOffset(float v, ProcTexShift mode, ProcTexClamp clamp_mode)
|
|||
case ProcTexShift::Even:
|
||||
return offset * ((((int)v + 1) / 2) % 2);
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unknown shift mode {}", static_cast<u32>(mode));
|
||||
LOG_CRITICAL(HW_GPU, "Unknown shift mode {}", static_cast<u32>(mode));
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
@ -107,7 +107,7 @@ static void ClampCoord(float& coord, ProcTexClamp mode) {
|
|||
coord = 1.0f;
|
||||
break;
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unknown clamp mode {}", static_cast<u32>(mode));
|
||||
LOG_CRITICAL(HW_GPU, "Unknown clamp mode {}", static_cast<u32>(mode));
|
||||
coord = std::min(coord, 1.0f);
|
||||
break;
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ float CombineAndMap(float u, float v, ProcTexCombiner combiner,
|
|||
f = std::min(((u + v) * 0.5f + std::sqrt(u * u + v * v)) * 0.5f, 1.0f);
|
||||
break;
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unknown combiner {}", static_cast<u32>(combiner));
|
||||
LOG_CRITICAL(HW_GPU, "Unknown combiner {}", static_cast<u32>(combiner));
|
||||
f = 0.0f;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -363,7 +363,7 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
|
|||
}
|
||||
default:
|
||||
// TODO: Change to LOG_ERROR when more types are handled.
|
||||
NGLOG_DEBUG(HW_GPU, "Unhandled texture type {:x}",
|
||||
LOG_DEBUG(HW_GPU, "Unhandled texture type {:x}",
|
||||
(int)texture.config.type);
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
|
@ -513,7 +513,7 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
|
|||
return combiner_output;
|
||||
|
||||
default:
|
||||
NGLOG_ERROR(HW_GPU, "Unknown color combiner source {}", (int)source);
|
||||
LOG_ERROR(HW_GPU, "Unknown color combiner source {}", (int)source);
|
||||
UNIMPLEMENTED();
|
||||
return {0, 0, 0, 0};
|
||||
}
|
||||
|
@ -844,7 +844,7 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
|
|||
return std::min(combiner_output.a(), static_cast<u8>(255 - dest.a()));
|
||||
|
||||
default:
|
||||
NGLOG_CRITICAL(HW_GPU, "Unknown blend factor {:x}",
|
||||
LOG_CRITICAL(HW_GPU, "Unknown blend factor {:x}",
|
||||
static_cast<u32>(factor));
|
||||
UNIMPLEMENTED();
|
||||
break;
|
||||
|
|
|
@ -48,7 +48,7 @@ int GetWrappedTexCoord(TexturingRegs::TextureConfig::WrapMode mode, int val, uns
|
|||
}
|
||||
|
||||
default:
|
||||
NGLOG_ERROR(HW_GPU, "Unknown texture coordinate wrapping mode {:x}", (int)mode);
|
||||
LOG_ERROR(HW_GPU, "Unknown texture coordinate wrapping mode {:x}", (int)mode);
|
||||
UNIMPLEMENTED();
|
||||
return 0;
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ Math::Vec3<u8> ColorCombine(TevStageConfig::Operation op, const Math::Vec3<u8> i
|
|||
return {(u8)result, (u8)result, (u8)result};
|
||||
}
|
||||
default:
|
||||
NGLOG_ERROR(HW_GPU, "Unknown color combiner operation {}", (int)op);
|
||||
LOG_ERROR(HW_GPU, "Unknown color combiner operation {}", (int)op);
|
||||
UNIMPLEMENTED();
|
||||
return {0, 0, 0};
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ u8 AlphaCombine(TevStageConfig::Operation op, const std::array<u8, 3>& input) {
|
|||
return (std::min(255, (input[0] + input[1])) * input[2]) / 255;
|
||||
|
||||
default:
|
||||
NGLOG_ERROR(HW_GPU, "Unknown alpha combiner operation {}", (int)op);
|
||||
LOG_ERROR(HW_GPU, "Unknown alpha combiner operation {}", (int)op);
|
||||
UNIMPLEMENTED();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue