[PATCH xf86-video-amdgpu 6/7] dri2: Don't allow flipping when using a dedicated scanout buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michel Dänzer <michel.daenzer@xxxxxxx>

Fixes issues when mixing rotation and page flipping with current xserver
Git master.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_dri2.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
index 9cdcf28..17b8578 100644
--- a/src/amdgpu_dri2.c
+++ b/src/amdgpu_dri2.c
@@ -600,7 +600,10 @@ can_exchange(ScrnInfoPtr pScrn, DrawablePtr draw,
 
 	for (i = 0; i < xf86_config->num_crtc; i++) {
 		xf86CrtcPtr crtc = xf86_config->crtc[i];
-		if (crtc->enabled && crtc->rotatedData)
+		drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
+			
+		if (crtc->enabled &&
+		    (crtc->rotatedData || drmmode_crtc->scanout[0].bo))
 			return FALSE;
 	}
 
-- 
2.8.1



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux