mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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: 9b6782c821 "Store FB for each CRTC in drmmode_flipdata_rec"
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
85cd8eef0c
commit
f6cd72e64e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user