mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
modesetting: read DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP when parsing async flip capabilities
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
7b301ee278
commit
5460be02c9
@@ -512,10 +512,13 @@ ms_present_screen_init(ScreenPtr screen)
|
||||
uint64_t value;
|
||||
int ret;
|
||||
|
||||
ret = drmGetCap(ms->fd, DRM_CAP_ASYNC_PAGE_FLIP, &value);
|
||||
ret = drmGetCap(ms->fd, ms->atomic_modeset ?
|
||||
DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP :
|
||||
DRM_CAP_ASYNC_PAGE_FLIP, &value);
|
||||
if (ret == 0 && value == 1) {
|
||||
ms_present_screen_info.capabilities |= PresentCapabilityAsync;
|
||||
ms->drmmode.can_async_flip = TRUE;
|
||||
xf86DrvMsg(screen->myNum, X_INFO, "Async flip capable\n");
|
||||
}
|
||||
|
||||
return present_screen_init(screen, &ms_present_screen_info);
|
||||
|
||||
Reference in New Issue
Block a user