From 24b40d4c035b56c81da62e015154cb997ce195b8 Mon Sep 17 00:00:00 2001 From: nmzik Date: Mon, 17 Aug 2026 12:26:38 +0200 Subject: [PATCH] renderer: add warning log --- src/graphics/host_gpu/renderer/renderDraw.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/graphics/host_gpu/renderer/renderDraw.cpp b/src/graphics/host_gpu/renderer/renderDraw.cpp index d70083d..47d3220 100644 --- a/src/graphics/host_gpu/renderer/renderDraw.cpp +++ b/src/graphics/host_gpu/renderer/renderDraw.cpp @@ -35,9 +35,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include @@ -503,6 +505,12 @@ static bool ShouldSkipGeShader(const RenderCommandBuffer& buffer) { sh_regs.m_geMaxOutputPerSubgroup > 0x00000040; if (unsupported_stage_mask || unsupported_gs_stage || ge_group_size || ge_shader_regs) { + static std::once_flag warning_once; + std::call_once(warning_once, [] { + std::printf("Warning: game uses unsupported graphics pipelines; some draw calls were " + "skipped.\n"); + }); + const auto log_id = g_shader_stage_log_count.fetch_add(1); if (log_id < 32) { LOGF("Skipping unsupported GE shader draw: stages=0x%08" PRIx32