diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c index 49f7349d8..2fc2074eb 100644 --- a/hw/xfree86/drivers/modesetting/driver.c +++ b/hw/xfree86/drivers/modesetting/driver.c @@ -1933,10 +1933,6 @@ ScreenInit(ScreenPtr pScreen, int argc, char **argv) "Failed to initialize the DRI2 extension.\n"); } - if (!(ms->drmmode.present_enable = ms_present_screen_init(pScreen))) { - xf86DrvMsg(pScrn->scrnIndex, X_ERROR, - "Failed to initialize the Present extension.\n"); - } /* enable reverse prime if we are a GPU screen, and accelerated, and not * i915. i915 is happy scanning out from sysmem. */ if (pScreen->isGPU) { @@ -1955,6 +1951,11 @@ ScreenInit(ScreenPtr pScreen, int argc, char **argv) } } #endif + if (!(ms->drmmode.present_enable = ms_present_screen_init(pScreen))) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, + "Failed to initialize the Present extension.\n"); + } + pScrn->vtSema = TRUE;