Mesa (master): DRI: Log something if we don't support legacy DRI

Michel Dänzer daenzer at kemper.freedesktop.org
Wed Sep 14 16:40:26 UTC 2011


Module: Mesa
Branch: master
Commit: 48510d685655d0003c10fc3a3c2dcb485c3a86d1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=48510d685655d0003c10fc3a3c2dcb485c3a86d1

Author: Andrew Deason <adeason at dson.org>
Date:   Wed Sep 14 18:37:48 2011 +0200

DRI: Log something if we don't support legacy DRI

If we are called via the legacy DRI interface, and we don't support
legacy DRI (InitScreen is NULL), print a debug message, so it is easy
to see why the driver fails to initialize.

See https://bugs.freedesktop.org/show_bug.cgi?id=40437

---

 src/mesa/drivers/dri/common/dri_util.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 6d64019..cdd4137 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -816,8 +816,10 @@ driCreateNewScreen(int scrn,
 
     (void) loaderPrivate;
 
-    if (driDriverAPI.InitScreen == NULL)
+    if (driDriverAPI.InitScreen == NULL) {
+	__driUtilMessage("driver does not support DRI1");
 	return NULL;
+    }
 
     psp = calloc(1, sizeof *psp);
     if (!psp)




More information about the mesa-commit mailing list