From d5f5bc5846ef06c3ecf9e5acf1ca357574f06f5a Mon Sep 17 00:00:00 2001 From: Flora Cui Date: Fri, 14 Jun 2019 11:20:12 +0200 Subject: dri2: reply to client for WaitMSC request in any case otherwise client would wait for reply forever and desktop appears hang. Signed-off-by: Flora Cui (Ported from amdgpu commit fb06fb814700a47464abd756e1111dcc76d0d776) Reviewed-by: Alex Deucher --- src/radeon_dri2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index a9f14e8d..3c04e6fe 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -1156,6 +1156,9 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw, out_complete: if (wait_info) radeon_dri2_deferred_event(NULL, 0, wait_info); + else + DRI2WaitMSCComplete(client, draw, 0, 0, 0); + return TRUE; } -- cgit v1.2.3