From oushixiong1025 at 163.com Tue May 23 01:35:46 2023 From: oushixiong1025 at 163.com (oushixiong) Date: Tue, 23 May 2023 09:35:46 +0800 Subject: [PATCH] present: Flush before using a flip to unflip Message-ID: <20230523013546.52056-1-oushixiong1025@163.com> From: oushixiong Not flushing when unflip may result in scanning out stale contents of the screen pixmap sometimes. Signed-off-by: Ou Shixiong --- src/radeon_present.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/radeon_present.c b/src/radeon_present.c index d010aa19..3bb46fcc 100644 --- a/src/radeon_present.c +++ b/src/radeon_present.c @@ -417,6 +417,8 @@ radeon_present_unflip(ScreenPtr screen, uint64_t event_id) event->event_id = event_id; event->unflip = TRUE; + radeon_cs_flush_indirect(scrn); + if (radeon_do_pageflip(scrn, RADEON_DRM_QUEUE_CLIENT_DEFAULT, pixmap, event_id, event, NULL, radeon_present_flip_event, radeon_present_flip_abort, flip_sync, 0)) -- 2.25.1 No virus found Checked by Hillstone Network AntiVirus