[PATCH xf86-video-ati 1/3] dri2: reply to client for WaitMSC request in any case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Flora Cui <flora.cui@xxxxxxx>

otherwise client would wait for reply forever and desktop appears hang.

Signed-off-by: Flora Cui <flora.cui@xxxxxxx>
(Ported from amdgpu commit fb06fb814700a47464abd756e1111dcc76d0d776)
Signed-off-by: Michel Dänzer <michel.daenzer@xxxxxxx>
---
 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

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux