mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 16:28:04 +02:00
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_perf_debug macro, which will notify applications through the appropriate channels (GL_KHR_debug), making it more likely to be picked up by developers. Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41129>
This commit is contained in:
parent
afe3f28013
commit
b9c445f361
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue