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>
This commit is contained in:
Flora Cui
2019-06-14 11:20:12 +02:00
committed by Michel Dänzer
parent f758908db4
commit d5f5bc5846

View File

@@ -1156,6 +1156,9 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
out_complete: out_complete:
if (wait_info) if (wait_info)
radeon_dri2_deferred_event(NULL, 0, wait_info); radeon_dri2_deferred_event(NULL, 0, wait_info);
else
DRI2WaitMSCComplete(client, draw, 0, 0, 0);
return TRUE; return TRUE;
} }