summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAndrew Deason <[email protected]>2011-09-14 18:37:48 +0200
committerMichel Dänzer <[email protected]>2011-09-14 18:39:45 +0200
commit48510d685655d0003c10fc3a3c2dcb485c3a86d1 (patch)
tree45a7308f81fc6a74837d9e59765913583d485432 /src/mesa
parent45e0a7a51d88c397a27317d22b325ec31b3e2e99 (diff)
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
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c4
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 6d6401934d9..cdd413737ad 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)