mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 01:34:11 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user