present: Allow flipping with PRIME slave outputs
Works fine now. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
b5b292896f
commit
542d9f6807
|
@ -117,18 +117,6 @@ present_flip_pending_pixmap(ScreenPtr screen)
|
||||||
return screen_priv->flip_pending->pixmap;
|
return screen_priv->flip_pending->pixmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bool
|
|
||||||
present_check_output_slaves_active(ScreenPtr pScreen)
|
|
||||||
{
|
|
||||||
ScreenPtr pSlave;
|
|
||||||
|
|
||||||
xorg_list_for_each_entry(pSlave, &pScreen->slave_list, slave_head) {
|
|
||||||
if (RRHasScanoutPixmap(pSlave))
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
present_check_flip(RRCrtcPtr crtc,
|
present_check_flip(RRCrtcPtr crtc,
|
||||||
WindowPtr window,
|
WindowPtr window,
|
||||||
|
@ -156,10 +144,6 @@ present_check_flip(RRCrtcPtr crtc,
|
||||||
if (!screen_priv->info->flip)
|
if (!screen_priv->info->flip)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Fail to flip if we have slave outputs */
|
|
||||||
if (screen->output_slaves && present_check_output_slaves_active(screen))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
/* Make sure the window hasn't been redirected with Composite */
|
/* Make sure the window hasn't been redirected with Composite */
|
||||||
window_pixmap = screen->GetWindowPixmap(window);
|
window_pixmap = screen->GetWindowPixmap(window);
|
||||||
if (window_pixmap != screen->GetScreenPixmap(screen) &&
|
if (window_pixmap != screen->GetScreenPixmap(screen) &&
|
||||||
|
|
Loading…
Reference in New Issue