[Mesa-dev] [PATCH 1/2] glx: report which DRI version is used when in verbose debug mode

Martin Peres martin.peres at linux.intel.com
Wed May 6 05:43:42 PDT 2015


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:
-- 
2.3.7



More information about the mesa-dev mailing list