graphics: shorten the mesh draw skip warning

This commit is contained in:
nmzik
2026-10-26 00:27:22 +01:00
parent 560756f34c
commit be1c84f4d7
@@ -713,11 +713,9 @@ void PipelineCache::GetGraphicsPrograms(const CommandBuffer& command, DrawRender
mesh.lds_size_dwords * sizeof(uint32_t) > limits.maxMeshSharedMemorySize) { mesh.lds_size_dwords * sizeof(uint32_t) > limits.maxMeshSharedMemorySize) {
static std::atomic_bool warned = false; static std::atomic_bool warned = false;
if (!warned.exchange(true, std::memory_order_relaxed)) { if (!warned.exchange(true, std::memory_order_relaxed)) {
Log::WriteToConsoleAndLog( Log::WriteToConsoleAndLog(fmt::format(
fmt::format("Warning: skipping draws of mesh shaders that exceed host limits " "Warning: dropping mesh draws the host does not support (shader 0x{:016x}).\n",
"(shader=0x{:016x} threads={} vertices={} primitives={} LDS={}).\n", vertex_params[0].hash));
vertex_params[0].hash, host_threads, mesh.max_vertices,
mesh.max_primitives, mesh.lds_size_dwords));
} }
return; return;
} }