diff options
author | Andrew Deason <adeason@dson.org> | 2011-09-14 18:37:48 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2011-09-14 18:39:45 +0200 |
commit | 48510d685655d0003c10fc3a3c2dcb485c3a86d1 (patch) | |
tree | 45a7308f81fc6a74837d9e59765913583d485432 | |
parent | 45e0a7a51d88c397a27317d22b325ec31b3e2e99 (diff) | |
download | external_mesa3d-48510d685655d0003c10fc3a3c2dcb485c3a86d1.zip external_mesa3d-48510d685655d0003c10fc3a3c2dcb485c3a86d1.tar.gz external_mesa3d-48510d685655d0003c10fc3a3c2dcb485c3a86d1.tar.bz2 |
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
-rw-r--r-- | 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) |