summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorMartin Peres <[email protected]>2015-05-06 13:31:30 +0300
committerMartin Peres <[email protected]>2015-05-07 16:56:14 +0300
commitcedd5008dad7750835cc4a4a318afc82fe351eac (patch)
tree38678a24a7471f5c08525c514767114c7f7e48a7 /src/glx
parentcf5e015f71496e0626cd5c6262af1c5099391850 (diff)
glx: report which DRI version is used when in verbose debug mode
This should make it more obvious in bug reports while also removing any sort of guesswork for developers. Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Martin Peres <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2_glx.c2
-rw-r--r--src/glx/dri3_glx.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 462d5602a1c..538cf1adb82 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 1ddc723d508..ff77a91b15f 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: