Commit 55a4461b authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

Wait for scanout BO initialization to finish before setting mode



This should avoid intermittent artifacts which could sometimes be visible
when setting a new scanout pixmap, e.g. on server startup or when
changing resolutions.

(Ported from radeon commit 3791fceabf2cb037467dc41c15364e9f9ec1e47e)
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4c425e9c
......@@ -416,7 +416,7 @@ void drmmode_copy_fb(ScrnInfoPtr pScrn, drmmode_ptr drmmode)
FreeScratchGC(gc);
amdgpu_glamor_flush(pScrn);
amdgpu_glamor_finish(pScrn);
pScreen->canDoBGNoneRoot = TRUE;
......@@ -697,6 +697,7 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
x = y = 0;
amdgpu_scanout_update_handler(pScrn, 0, 0, crtc);
amdgpu_glamor_finish(pScrn);
}
}
ret =
......@@ -1630,7 +1631,7 @@ static Bool drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
(*gc->ops->PolyFillRect)(&ppix->drawable, gc, 1, &rect);
info->force_accel = FALSE;
FreeScratchGC(gc);
amdgpu_glamor_flush(scrn);
amdgpu_glamor_finish(scrn);
for (i = 0; i < xf86_config->num_crtc; i++) {
xf86CrtcPtr crtc = xf86_config->crtc[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment