diff options
Diffstat (limited to 'src/common_drm.c')
-rw-r--r-- | src/common_drm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common_drm.c b/src/common_drm.c index 1523694..19110d1 100644 --- a/src/common_drm.c +++ b/src/common_drm.c @@ -36,11 +36,13 @@ enum { OPTION_HW_CURSOR, OPTION_HOTPLUG, + OPTION_PRESENT, }; const OptionInfoRec common_drm_options[] = { { OPTION_HW_CURSOR, "HWcursor", OPTV_BOOLEAN, {0}, FALSE }, { OPTION_HOTPLUG, "HotPlug", OPTV_BOOLEAN, {0}, TRUE }, + { OPTION_PRESENT, "Present", OPTV_BOOLEAN, {0}, FALSE }, { -1, NULL, OPTV_NONE, {0}, FALSE } }; @@ -1156,6 +1158,11 @@ Bool common_drm_PostScreenInit(ScreenPtr pScreen) ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); struct common_drm_info *drm = GET_DRM_INFO(pScrn); +#ifdef HAVE_PRESENT + if (xf86ReturnOptValBool(drm->Options, OPTION_PRESENT, TRUE)) + common_present_init(pScreen); +#endif + pScreen->SaveScreen = xf86SaveScreen; /* software cursor */ |