present: Don't allow flipping when using a dedicated scanout buffer

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

(Ported from amdgpu commit 3ed28ce7cd26f89969617ba901ff253091d0d469)
This commit is contained in:
Michel Dänzer
2016-09-21 16:44:50 +09:00
committed by Michel Dänzer
parent 8419db3de6
commit 83e4781d15

View File

@@ -265,7 +265,8 @@ radeon_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->pending_dpms_mode == DPMSModeOn)