From 25a7539b4753b83ebee2db917f9e4da515222ca1 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 23 Apr 2026 10:53:09 +0200 Subject: [PATCH] mesa/main: do not gate performance warning This warning effectively warns users about needless calls to glGetGraphicsResetStatusARB(), which is nice. But it's currently gated behind the undocumented VERBOSE_API flag, which also prints a whole lot of API-call tracing, making this useful message drown in the noise. So let's instead make this use the _mesa_per_debug macro, which will notify applications through the appropriate channels (GL_KHR_debug), making it more likely to be picked up by developers. --- src/mesa/main/robustness.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/robustness.c b/src/mesa/main/robustness.c index 3a7e50098e2..81745d4fc0a 100644 --- a/src/mesa/main/robustness.c +++ b/src/mesa/main/robustness.c @@ -124,11 +124,10 @@ _mesa_GetGraphicsResetStatusARB( void ) * events, and GetGraphicsResetStatusARB will always return NO_ERROR." */ if (ctx->Const.ResetStrategy == GL_NO_RESET_NOTIFICATION_ARB) { - if (MESA_VERBOSE & VERBOSE_API) - _mesa_debug(ctx, - "glGetGraphicsResetStatusARB always returns GL_NO_ERROR " - "because reset notifictation was not requested at context " - "creation.\n"); + _mesa_perf_debug(ctx, MESA_DEBUG_SEVERITY_LOW, + "glGetGraphicsResetStatusARB always returns GL_NO_ERROR " + "because reset notifictation was not requested at context " + "creation.\n"); return GL_NO_ERROR; }