[PATCH xf86-video-ati 1/3] dri2: reply to client for WaitMSC request in any case
Michel Dänzer
michel at daenzer.net
Fri Jun 14 09:27:43 UTC 2019
From: Flora Cui <flora.cui at amd.com>
otherwise client would wait for reply forever and desktop appears hang.
Signed-off-by: Flora Cui <flora.cui at amd.com>
(Ported from amdgpu commit fb06fb814700a47464abd756e1111dcc76d0d776)
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/radeon_dri2.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index a9f14e8d8..3c04e6fe9 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;
}
--
2.20.1
More information about the amd-gfx
mailing list