summaryrefslogtreecommitdiff
path: root/src/driver.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-29 00:45:24 -0800
committerEric Anholt <eric@anholt.net>2014-08-21 15:31:43 -0700
commita02f88a724057dc8dfaf874bf0362ab4254c2701 (patch)
tree6b7d4d5e8a7af7742b0ddc261d78db486e406071 /src/driver.c
parent4affbc3741748e89ddc69f4d3cf031b141737e5e (diff)
Add WIP support for Present when using glamor.glamor
Diffstat (limited to 'src/driver.c')
-rw-r--r--src/driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver.c b/src/driver.c
index a367713..95b7cdc 100644
--- a/src/driver.c
+++ b/src/driver.c
@@ -1159,6 +1159,12 @@ ScreenInit(SCREEN_INIT_ARGS_DECL)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Failed to initialize the DRI2 extension.\n");
}
+
+ if (!ms_present_screen_init(pScreen)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Failed to initialize PRESENT.\n");
+ return FALSE;
+ }
}
#endif
@@ -1236,6 +1242,7 @@ CloseScreen(CLOSE_SCREEN_ARGS_DECL)
if (ms->glamor) {
ms_dri2_close_screen(pScreen);
ms_sync_close_screen(pScreen);
+ ms_present_close_screen(pScreen);
}
#endif