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

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

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Michel Dänzer
2016-06-22 16:54:01 +09:00
committed by Michel Dänzer
parent 9c3324715f
commit 3ed28ce7cd

View File

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