modesetting: Always load ms->drmmode.pageflip
ms->drmmode.pageflip was only loaded from options if ms->drmmode.glamor was defined, otherwise it would always assume FALSE. PRIME Synchronization requires ms->drmmode.pageflip even if we aren't using glamor, so load it unconditionally. v1: N/A v2: N/A v3: N/A v4: N/A v5: Initial commit v6: Rebase onto ToT v7: Unchanged Reviewed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Goins <agoins@nvidia.com>
This commit is contained in:
parent
b773a9c812
commit
378c85a884
|
@ -873,10 +873,7 @@ PreInit(ScrnInfoPtr pScrn, int flags)
|
|||
|
||||
try_enable_glamor(pScrn);
|
||||
|
||||
if (ms->drmmode.glamor) {
|
||||
ms->drmmode.pageflip =
|
||||
xf86ReturnOptValBool(ms->drmmode.Options, OPTION_PAGEFLIP, TRUE);
|
||||
} else {
|
||||
if (!ms->drmmode.glamor) {
|
||||
Bool prefer_shadow = TRUE;
|
||||
|
||||
ret = drmGetCap(ms->fd, DRM_CAP_DUMB_PREFER_SHADOW, &value);
|
||||
|
@ -892,10 +889,11 @@ PreInit(ScrnInfoPtr pScrn, int flags)
|
|||
"ShadowFB: preferred %s, enabled %s\n",
|
||||
prefer_shadow ? "YES" : "NO",
|
||||
ms->drmmode.shadow_enable ? "YES" : "NO");
|
||||
|
||||
ms->drmmode.pageflip = FALSE;
|
||||
}
|
||||
|
||||
ms->drmmode.pageflip =
|
||||
xf86ReturnOptValBool(ms->drmmode.Options, OPTION_PAGEFLIP, TRUE);
|
||||
|
||||
pScrn->capabilities = 0;
|
||||
#ifdef DRM_CAP_PRIME
|
||||
ret = drmGetCap(ms->fd, DRM_CAP_PRIME, &value);
|
||||
|
|
Loading…
Reference in New Issue