diff options
author | Xaver Hugl <xaver.hugl@gmail.com> | 2022-10-17 16:31:05 +0200 |
---|---|---|
committer | Xaver Hugl <xaver.hugl@gmail.com> | 2023-06-19 12:19:31 +0200 |
commit | 2adc5c45c1126fc26fb757ddf5b9df5fd0d907eb (patch) | |
tree | 83766c3d8a0a06cbf4c56c1cc0ac210b9c2bd987 /present | |
parent | c6bf0e3950592b4b7c0ed53f5bd48ffa0fc54dff (diff) |
present: add support for PresentOptionAsyncMayTear
Signed-off-by: Xaver Hugl <xaver.hugl@gmail.com>
Acked-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
Diffstat (limited to 'present')
-rw-r--r-- | present/present.c | 2 | ||||
-rw-r--r-- | present/present_vblank.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/present/present.c b/present/present.c index 271fe32bc..211868341 100644 --- a/present/present.c +++ b/present/present.c @@ -157,7 +157,7 @@ present_get_target_msc(uint64_t target_msc_arg, uint64_t remainder, uint32_t options) { - const Bool synced_flip = !(options & PresentOptionAsync); + const Bool synced_flip = !(options & PresentAllAsyncOptions); uint64_t target_msc; /* If the specified target-msc lies in the future, then this diff --git a/present/present_vblank.c b/present/present_vblank.c index a9f17d4b2..4f94f16e4 100644 --- a/present/present_vblank.c +++ b/present/present_vblank.c @@ -115,7 +115,7 @@ present_vblank_init(present_vblank_ptr vblank, { vblank->flip = TRUE; vblank->sync_flip = TRUE; - } else if ((capabilities & PresentCapabilityAsync) && + } else if ((capabilities & PresentAllAsyncCapabilities) && screen_priv->check_flip (target_crtc, window, pixmap, FALSE, valid, x_off, y_off, &reason)) { vblank->flip = TRUE; |