diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-06-22 17:43:41 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-06-23 16:12:20 +0900 |
commit | decabd574f90d3df397c80ec931b3fde8a4afb49 (patch) | |
tree | 03d5ade01095354d23c5f66614f40b900fe75f95 /src/amdgpu_dri2.c | |
parent | 3ed28ce7cd26f89969617ba901ff253091d0d469 (diff) |
dri2: 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>
Diffstat (limited to 'src/amdgpu_dri2.c')
-rw-r--r-- | src/amdgpu_dri2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c index 9cdcf28..dd18e72 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; } |