modesetting: Log whether atomic modesetting is enabled
If atomic modesetting is to be enabled in the configuration file, log whether this is supported and eventually enabled or disabled. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Martin Roukala <martin.roukala@mupuf.org>
This commit is contained in:
parent
c066a46aac
commit
6ac3178c33
|
@ -1370,9 +1370,13 @@ PreInit(ScrnInfoPtr pScrn, int flags)
|
||||||
if (xf86ReturnOptValBool(ms->drmmode.Options, OPTION_ATOMIC, FALSE)) {
|
if (xf86ReturnOptValBool(ms->drmmode.Options, OPTION_ATOMIC, FALSE)) {
|
||||||
ret = drmSetClientCap(ms->fd, DRM_CLIENT_CAP_ATOMIC, 1);
|
ret = drmSetClientCap(ms->fd, DRM_CLIENT_CAP_ATOMIC, 1);
|
||||||
ms->atomic_modeset = (ret == 0);
|
ms->atomic_modeset = (ret == 0);
|
||||||
|
if (!ms->atomic_modeset)
|
||||||
|
xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Atomic modesetting not supported\n");
|
||||||
} else {
|
} else {
|
||||||
ms->atomic_modeset = FALSE;
|
ms->atomic_modeset = FALSE;
|
||||||
}
|
}
|
||||||
|
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||||
|
"Atomic modesetting %sabled\n", ms->atomic_modeset ? "en" : "dis");
|
||||||
|
|
||||||
/* TearFree requires glamor and, if PageFlip is enabled, universal planes */
|
/* TearFree requires glamor and, if PageFlip is enabled, universal planes */
|
||||||
if (xf86ReturnOptValBool(ms->drmmode.Options, OPTION_TEARFREE, FALSE)) {
|
if (xf86ReturnOptValBool(ms->drmmode.Options, OPTION_TEARFREE, FALSE)) {
|
||||||
|
|
Loading…
Reference in New Issue