summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Spintzyk <lukasz.spintzyk@synaptics.com>2020-09-18 14:29:25 +0200
committerŁukasz Spintzyk <lukasz.spintzyk@synaptics.com>2021-06-14 12:16:45 +0200
commit464cbee1c625d60ac9e18b7f4e3d53bc83b0d585 (patch)
tree2a41629f14c54b6073333d73a1cec8f590a861b8
parent4e11bd390a28144fac03dc21a6caf0800596e2fa (diff)
modesetting: Initialize present extension despite glamor is disabled
Signed-off-by: Łukasz Spintzyk <lukasz.spintzyk@synaptics.com> (cherry picked from commit d03c0de77ba36bb5221d00ac84dcdd6aae0df453)
-rw-r--r--hw/xfree86/drivers/modesetting/driver.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/hw/xfree86/drivers/modesetting/driver.c b/hw/xfree86/drivers/modesetting/driver.c
index 8ca3e897a..ec4189a2c 100644
--- a/hw/xfree86/drivers/modesetting/driver.c
+++ b/hw/xfree86/drivers/modesetting/driver.c
@@ -1747,10 +1747,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, evdi or udl. i915 is happy scanning out from sysmem.
* evdi and udl are virtual drivers scanning out from sysmem
@@ -1781,6 +1777,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;