summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-08-16 18:22:27 +0200
committerMichel Dänzer <michel.daenzer@amd.com>2018-08-16 18:22:27 +0200
commit824189b3da9edc33e1a4f5c6130a043da73c1a4c (patch)
tree02d9b83c63d66138bb6a1752b2ea5e8289cd2ad0
parent740f0850f1e40403c8dd727e074eae36caeb1f63 (diff)
Use correct FB handle in radeon_do_pageflip
We were always using the handle of the client provided FB, which prevented RandR transforms from working, and could result in a black screen. Bugzilla: https://bugs.freedesktop.org/107519 Fixes: 740f0850f1e4 "Store FB for each CRTC in drmmode_flipdata_rec" (Ported from amdgpu commit f6cd72e64e85896b6d155bee0930e59771dcb701) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/drmmode_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 0b92b70c..68d6254d 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -3386,7 +3386,7 @@ Bool radeon_do_pageflip(ScrnInfoPtr scrn, ClientPtr client,
if (crtc == ref_crtc) {
if (drmmode_page_flip_target_absolute(pRADEONEnt,
drmmode_crtc,
- fb->handle,
+ flipdata->fb[i]->handle,
flip_flags,
drm_queue_seq,
target_msc) != 0)
@@ -3394,7 +3394,7 @@ Bool radeon_do_pageflip(ScrnInfoPtr scrn, ClientPtr client,
} else {
if (drmmode_page_flip_target_relative(pRADEONEnt,
drmmode_crtc,
- fb->handle,
+ flipdata->fb[i]->handle,
flip_flags,
drm_queue_seq, 0) != 0)
goto flip_error;