present: Support PresentOptionCopy
We added this option to the present protocol before 1.0 but somehow
never implemented it in the server. It's pretty simple; just don't
ever do flips if the application specifies Copy.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit 2051514652
)
Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
386329ec72
commit
f1fc86d61e
|
@ -832,7 +832,10 @@ present_pixmap(WindowPtr window,
|
|||
if (!screen_priv->info || !(screen_priv->info->capabilities & PresentCapabilityAsync))
|
||||
vblank->sync_flip = TRUE;
|
||||
|
||||
if (pixmap && present_check_flip (target_crtc, window, pixmap, vblank->sync_flip, valid, x_off, y_off)) {
|
||||
if (!(options & PresentOptionCopy) &&
|
||||
pixmap != NULL &&
|
||||
present_check_flip (target_crtc, window, pixmap, vblank->sync_flip, valid, x_off, y_off))
|
||||
{
|
||||
vblank->flip = TRUE;
|
||||
if (vblank->sync_flip)
|
||||
target_msc--;
|
||||
|
|
Loading…
Reference in New Issue
Block a user