From: Andrew Deason Date: Wed, 14 Sep 2011 16:37:48 +0000 (+0200) Subject: DRI: Log something if we don't support legacy DRI X-Git-Tag: 062012170305~4481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48510d685655d0003c10fc3a3c2dcb485c3a86d1;p=profile%2Fivi%2Fmesa.git 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 --- 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)