summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlora Cui <flora.cui@amd.com>2019-05-29 14:18:50 +0800
committerFlora Cui <flora.cui@amd.com>2019-06-10 09:45:03 +0800
commitfb06fb814700a47464abd756e1111dcc76d0d776 (patch)
tree3fe71ed245d76c618e59f40b9f33a920cf91fae5
parent4b17533fcb30842caf0035ba593b7d986520cc85 (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> Acked-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--src/amdgpu_dri2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
index 44316ac..d205428 100644
--- a/src/amdgpu_dri2.c
+++ b/src/amdgpu_dri2.c
@@ -1062,6 +1062,9 @@ static int amdgpu_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
out_complete:
if (wait_info)
amdgpu_dri2_deferred_event(NULL, 0, wait_info);
+ else
+ DRI2WaitMSCComplete(client, draw, 0, 0, 0);
+
return TRUE;
}