[PATCH xf86-video-amdgpu 5/7] present: 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_present.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index 63ba812..c0b2f17 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -242,7 +242,8 @@ amdgpu_present_check_flip(RRCrtcPtr crtc, WindowPtr window, PixmapPtr pixmap,
 		if (!config->crtc[i]->enabled)
 			continue;
 
-		if (!drmmode_crtc || drmmode_crtc->rotate.bo != NULL)
+		if (!drmmode_crtc || drmmode_crtc->rotate.bo ||
+		    drmmode_crtc->scanout[0].bo)
 			return FALSE;
 
 		if (drmmode_crtc->dpms_mode == DPMSModeOn)
-- 
2.8.1



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

  Powered by Linux