mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 14:38:09 +02:00
glamor: Disable debugging messages other than GL API errors
According to Nicolai Hähnle, the relevant specification says "All
messages are initially enabled unless their assigned severity is
DEBUG_SEVERITY_LOW", so we need to explicitly disable the messages we
don't want to get. Failing that, we were accidentally logging e.g.
shader stats intended for shader-db.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93659
Tested-by: Laurent Carlier <lordheavym@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 1db6de7b6a)
This commit is contained in:
parent
9e45b28e99
commit
9505783c22
1 changed files with 3 additions and 0 deletions
|
|
@ -401,6 +401,9 @@ glamor_setup_debug_output(ScreenPtr screen)
|
|||
return;
|
||||
|
||||
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
|
||||
/* Disable debugging messages other than GL API errors */
|
||||
glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL,
|
||||
GL_FALSE);
|
||||
glDebugMessageControl(GL_DEBUG_SOURCE_API,
|
||||
GL_DEBUG_TYPE_ERROR,
|
||||
GL_DONT_CARE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue