[PATCH xserver] glamor: Disable debugging messages other than GL API errors

Laurent Carlier lordheavym at gmail.com
Fri Jan 8 10:10:11 PST 2016


Le jeudi 7 janvier 2016, 10:28:19 CET Michel Dänzer a écrit :
> From: Michel Dänzer <michel.daenzer at amd.com>
> 
> 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.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
>  glamor/glamor.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/glamor/glamor.c b/glamor/glamor.c
> index 116d10c..81aba2d 100644
> --- a/glamor/glamor.c
> +++ b/glamor/glamor.c
> @@ -393,6 +393,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,

Tested with xserver 1.18.0;
no more (EE) glamor0: GL error: Shader Stats: SGPRS: 80 VGPRS: 4 Code Size: 88 
LDS: 0 Scratch: 0 with xf86-video-amdgpu driver

-- 
Laurent Carlier
http://www.archlinux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.x.org/archives/xorg-devel/attachments/20160108/f93d7913/attachment.sig>


More information about the xorg-devel mailing list