summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-08-16 16:31:01 +0200
committerMichel Dänzer <michel@daenzer.net>2018-08-16 18:20:06 +0200
commitf6cd72e64e85896b6d155bee0930e59771dcb701 (patch)
treee611c7af5e3014270706124f27d4492f2378889b /src
parent85cd8eef0cbed7b409b07f58d76dacd34aa3ddea (diff)
Use correct FB handle in amdgpu_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. Fixes: 9b6782c821e0 "Store FB for each CRTC in drmmode_flipdata_rec" Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-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 9919c09..46be29d 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -3958,7 +3958,7 @@ Bool amdgpu_do_pageflip(ScrnInfoPtr scrn, ClientPtr client,
if (crtc == ref_crtc) {
if (drmmode_page_flip_target_absolute(pAMDGPUEnt,
drmmode_crtc,
- fb->handle,
+ flipdata->fb[i]->handle,
flip_flags,
drm_queue_seq,
target_msc) != 0)
@@ -3966,7 +3966,7 @@ Bool amdgpu_do_pageflip(ScrnInfoPtr scrn, ClientPtr client,
} else {
if (drmmode_page_flip_target_relative(pAMDGPUEnt,
drmmode_crtc,
- fb->handle,
+ flipdata->fb[i]->handle,
flip_flags,
drm_queue_seq, 0) != 0)
goto flip_error;