summaryrefslogtreecommitdiff
path: root/present/present.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-02-01 18:35:57 +0900
committerAdam Jackson <ajax@redhat.com>2017-02-08 12:08:56 -0500
commit542d9f6807ac06b70f564ccab10af69fa21a1221 (patch)
tree7ed55fa5ff8325c8f7f7d17892897ddf891587c6 /present/present.c
parentb5b292896f647c85f03f53b20b2f03c0e94de428 (diff)
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>
Diffstat (limited to 'present/present.c')
-rw-r--r--present/present.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/present/present.c b/present/present.c
index c9c68dcba..aa9c041df 100644
--- a/present/present.c
+++ b/present/present.c
@@ -118,18 +118,6 @@ present_flip_pending_pixmap(ScreenPtr screen)
}
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
present_check_flip(RRCrtcPtr crtc,
WindowPtr window,
PixmapPtr pixmap,
@@ -156,10 +144,6 @@ present_check_flip(RRCrtcPtr crtc,
if (!screen_priv->info->flip)
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 */
window_pixmap = screen->GetWindowPixmap(window);
if (window_pixmap != screen->GetScreenPixmap(screen) &&