[xserver,2/2] present: Allow flipping with PRIME slave outputs

Submitted by Michel Dänzer on Feb. 1, 2017, 9:35 a.m.

Details

Message ID 20170201093557.14982-3-michel@daenzer.net
State Accepted
Commit 542d9f6807ac06b70f564ccab10af69fa21a1221
Headers show
Series "present: Allow flipping with PRIME slave outputs" ( rev: 2 1 ) in X.org (DEPRECATED - USE GITLAB)

Not browsing as part of any series.

Commit Message

Michel Dänzer Feb. 1, 2017, 9:35 a.m.
From: Michel Dänzer <michel.daenzer@amd.com>

Works fine now.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 present/present.c | 16 ----------------
 1 file changed, 16 deletions(-)

Patch hide | download patch | download mbox

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) &&