summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlora Cui <flora.cui@amd.com>2019-06-14 11:20:12 +0200
committerMichel Dänzer <michel.daenzer@amd.com>2019-06-14 11:20:12 +0200
commitd5f5bc5846ef06c3ecf9e5acf1ca357574f06f5a (patch)
treedf0f9b5d294a25afc978c4fb106becced4c693ef
parentf758908db4e71406e5d437d32e43aabd38a63504 (diff)
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 <flora.cui@amd.com> (Ported from amdgpu commit fb06fb814700a47464abd756e1111dcc76d0d776) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--src/radeon_dri2.c3
1 files changed, 3 insertions, 0 deletions
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;
}