mirror of https://github.com/PCSX2/pcsx2.git
GS-gl/vk: Cleanup some logs.
Instead of ifdefing the longs use Devcon, does the same thing. Hide point expansion logs behind dev/debug build.
This commit is contained in:
parent
a326303956
commit
ddd2ea5f4d
|
@ -141,7 +141,7 @@ bool GSDeviceOGL::Create()
|
||||||
m_features.line_expand = false;
|
m_features.line_expand = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLn("Using %s for point expansion and %s for line expansion.",
|
DevCon.WriteLn("Using %s for point expansion and %s for line expansion.",
|
||||||
m_features.point_expand ? "hardware" : "geometry shaders", m_features.line_expand ? "hardware" : "geometry shaders");
|
m_features.point_expand ? "hardware" : "geometry shaders", m_features.line_expand ? "hardware" : "geometry shaders");
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -994,9 +994,7 @@ std::string GSDeviceOGL::GenGlslHeader(const std::string_view& entry, GLenum typ
|
||||||
|
|
||||||
std::string GSDeviceOGL::GetVSSource(VSSelector sel)
|
std::string GSDeviceOGL::GetVSSource(VSSelector sel)
|
||||||
{
|
{
|
||||||
#ifdef PCSX2_DEVBUILD
|
DevCon.WriteLn("Compiling new vertex shader with selector 0x%" PRIX64, sel.key);
|
||||||
Console.WriteLn("Compiling new vertex shader with selector 0x%" PRIX64, sel.key);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string macro = fmt::format("#define VS_INT_FST {}\n", static_cast<u32>(sel.int_fst))
|
std::string macro = fmt::format("#define VS_INT_FST {}\n", static_cast<u32>(sel.int_fst))
|
||||||
+ fmt::format("#define VS_IIP {}\n", static_cast<u32>(sel.iip))
|
+ fmt::format("#define VS_IIP {}\n", static_cast<u32>(sel.iip))
|
||||||
|
@ -1012,9 +1010,7 @@ std::string GSDeviceOGL::GetVSSource(VSSelector sel)
|
||||||
|
|
||||||
std::string GSDeviceOGL::GetGSSource(GSSelector sel)
|
std::string GSDeviceOGL::GetGSSource(GSSelector sel)
|
||||||
{
|
{
|
||||||
#ifdef PCSX2_DEVBUILD
|
DevCon.WriteLn("Compiling new geometry shader with selector 0x%" PRIX64, sel.key);
|
||||||
Console.WriteLn("Compiling new geometry shader with selector 0x%" PRIX64, sel.key);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string macro = fmt::format("#define GS_POINT {}\n", static_cast<u32>(sel.point))
|
std::string macro = fmt::format("#define GS_POINT {}\n", static_cast<u32>(sel.point))
|
||||||
+ fmt::format("#define GS_LINE {}\n", static_cast<u32>(sel.line))
|
+ fmt::format("#define GS_LINE {}\n", static_cast<u32>(sel.line))
|
||||||
|
@ -1028,9 +1024,7 @@ std::string GSDeviceOGL::GetGSSource(GSSelector sel)
|
||||||
|
|
||||||
std::string GSDeviceOGL::GetPSSource(const PSSelector& sel)
|
std::string GSDeviceOGL::GetPSSource(const PSSelector& sel)
|
||||||
{
|
{
|
||||||
#ifdef PCSX2_DEVBUILD
|
DevCon.WriteLn("Compiling new pixel shader with selector 0x%" PRIX64 "%08X", sel.key_hi, sel.key_lo);
|
||||||
Console.WriteLn("Compiling new pixel shader with selector 0x%" PRIX64 "%08X", sel.key_hi, sel.key_lo);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string macro = fmt::format("#define PS_FST {}\n", sel.fst)
|
std::string macro = fmt::format("#define PS_FST {}\n", sel.fst)
|
||||||
+ fmt::format("#define PS_WMS {}\n", sel.wms)
|
+ fmt::format("#define PS_WMS {}\n", sel.wms)
|
||||||
|
|
|
@ -270,7 +270,7 @@ bool GSDeviceVK::CheckFeatures()
|
||||||
(features.largePoints && limits.pointSizeRange[0] <= f_upscale && limits.pointSizeRange[1] >= f_upscale);
|
(features.largePoints && limits.pointSizeRange[0] <= f_upscale && limits.pointSizeRange[1] >= f_upscale);
|
||||||
m_features.line_expand =
|
m_features.line_expand =
|
||||||
(features.wideLines && limits.lineWidthRange[0] <= f_upscale && limits.lineWidthRange[1] >= f_upscale);
|
(features.wideLines && limits.lineWidthRange[0] <= f_upscale && limits.lineWidthRange[1] >= f_upscale);
|
||||||
Console.WriteLn("Using %s for point expansion and %s for line expansion.",
|
DevCon.WriteLn("Using %s for point expansion and %s for line expansion.",
|
||||||
m_features.point_expand ? "hardware" : "geometry shaders",
|
m_features.point_expand ? "hardware" : "geometry shaders",
|
||||||
m_features.line_expand ? "hardware" : "geometry shaders");
|
m_features.line_expand ? "hardware" : "geometry shaders");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue