[Mesa-dev] [PATCH 1/2] glx: report which DRI version is used when in verbose debug mode
Kenneth Graunke
kenneth at whitecape.org
Wed May 6 10:28:09 PDT 2015
On Wednesday, May 06, 2015 03:43:42 PM Martin Peres wrote:
> This should make it more obvious in bug reports while also removing
> any sort of guesswork for developers.
>
> Signed-off-by: Martin Peres <martin.peres at linux.intel.com>
> ---
> src/glx/dri2_glx.c | 2 ++
> src/glx/dri3_glx.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
> index 462d560..538cf1a 100644
> --- a/src/glx/dri2_glx.c
> +++ b/src/glx/dri2_glx.c
> @@ -1310,6 +1310,8 @@ dri2CreateScreen(int screen, struct glx_display * priv)
> if (psc->show_fps_interval < 0)
> psc->show_fps_interval = 0;
>
> + InfoMessageF("Using DRI2 for screen %d\n", screen);
> +
> return &psc->base;
>
> handle_error:
> diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
> index 1ddc723..ff77a91 100644
> --- a/src/glx/dri3_glx.c
> +++ b/src/glx/dri3_glx.c
> @@ -2036,6 +2036,8 @@ dri3_create_screen(int screen, struct glx_display * priv)
> if (psc->show_fps_interval < 0)
> psc->show_fps_interval = 0;
>
> + InfoMessageF("Using DRI3 for screen %d\n", screen);
> +
> return &psc->base;
>
> handle_error:
>
Thanks! I've wanted this for a long time but never bothered to write
it.
Patch 1 is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
I agree with Axel - I think LIBGL_DRI3_DISABLE=1 already does what you
want, so patch 2 is unnecessary.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150506/6cd82f01/attachment.sig>
More information about the mesa-dev
mailing list