mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Move flush from radeon_scanout_do_update to its callers
No functional change intended. (Ported from radeon commit 90b94d40449f665f2d12874598062a5e5e5b64cd) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
ace6ea016c
commit
9dfbae76b1
@@ -882,8 +882,6 @@ amdgpu_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id,
|
||||
FreeScratchGC(gc);
|
||||
}
|
||||
|
||||
amdgpu_glamor_flush(xf86_crtc->scrn);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -908,8 +906,10 @@ amdgpu_scanout_update_handler(xf86CrtcPtr crtc, uint32_t frame, uint64_t usec,
|
||||
drmmode_crtc->dpms_mode == DPMSModeOn) {
|
||||
if (amdgpu_scanout_do_update(crtc, drmmode_crtc->scanout_id,
|
||||
screen->GetWindowPixmap(screen->root),
|
||||
region->extents))
|
||||
region->extents)) {
|
||||
amdgpu_glamor_flush(crtc->scrn);
|
||||
RegionEmpty(region);
|
||||
}
|
||||
}
|
||||
|
||||
amdgpu_scanout_update_abort(crtc, event_data);
|
||||
@@ -991,6 +991,8 @@ amdgpu_scanout_flip(ScreenPtr pScreen, AMDGPUInfoPtr info,
|
||||
pScreen->GetWindowPixmap(pScreen->root),
|
||||
region->extents))
|
||||
return;
|
||||
|
||||
amdgpu_glamor_flush(scrn);
|
||||
RegionEmpty(region);
|
||||
|
||||
drm_queue_seq = amdgpu_drm_queue_alloc(xf86_crtc,
|
||||
|
||||
@@ -3978,6 +3978,7 @@ Bool amdgpu_do_pageflip(ScrnInfoPtr scrn, ClientPtr client,
|
||||
|
||||
amdgpu_scanout_do_update(crtc, scanout_id, new_front,
|
||||
extents);
|
||||
amdgpu_glamor_flush(crtc->scrn);
|
||||
|
||||
if (drmmode_crtc->scanout_update_pending) {
|
||||
drmmode_crtc_wait_pending_event(drmmode_crtc, pAMDGPUEnt->fd,
|
||||
|
||||
Reference in New Issue
Block a user