summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-06-22 16:54:01 +0900
committerMichel Dänzer <michel@daenzer.net>2016-06-23 16:11:36 +0900
commit3ed28ce7cd26f89969617ba901ff253091d0d469 (patch)
treee014fc728168607e6fd07ea80ae3cee905b64501
parent9c3324715fd395fd486ea341654d78f4f298b97f (diff)
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>
-rw-r--r--src/amdgpu_present.c3
1 files changed, 2 insertions, 1 deletions
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)