summaryrefslogtreecommitdiff
path: root/src/nouveau_dri2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nouveau_dri2.c')
-rw-r--r--src/nouveau_dri2.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index ce6f53e..81ee9be 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -1134,7 +1134,16 @@ nouveau_dri3_screen_init(ScreenPtr screen)
if (buf && stat(buf, &render) == 0 &&
master.st_mode == render.st_mode) {
pNv->render_node = buf;
- return dri3_screen_init(screen, &nouveau_dri3_screen_info);
+ if (dri3_screen_init(screen, &nouveau_dri3_screen_info)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "DRI3 on EXA enabled\n");
+ return TRUE;
+ }
+ else {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "DRI3 on EXA initialization failed\n");
+ return FALSE;
+ }
} else
free(buf);
#endif