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.
This commit is contained in:
Erik Faye-Lund 2026-04-23 10:53:09 +02:00 committed by Christian Gmeiner
parent d7c9c54197
commit 25a7539b47

View file

@ -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;
}