dri2: reply to client for WaitMSC request in any case

Submitted by Flora Cui on May 29, 2019, 6:36 a.m.

Details

Message ID 1559111780-32513-1-git-send-email-flora.cui@amd.com
State New
Headers show
Series "dri2: reply to client for WaitMSC request in any case" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Flora Cui May 29, 2019, 6:36 a.m.
otherwise client would wait for reply forever and desktop appears hang.

Signed-off-by: Flora Cui <flora.cui@amd.com>

---
 src/amdgpu_dri2.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.7.4

Patch hide | download patch | download mbox

diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
index 44316ac..34353a7 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);
+
+	DRI2WaitMSCComplete(client, draw, target_msc, 0, 0);
+
 	return TRUE;
 }
 

Comments

On 2019-05-29 8:36 a.m., Cui, Flora wrote:
> otherwise client would wait for reply forever and desktop appears hang.
> 
> Signed-off-by: Flora Cui <flora.cui@amd.com>
> ---
>  src/amdgpu_dri2.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
> index 44316ac..34353a7 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);
> +
> +	DRI2WaitMSCComplete(client, draw, target_msc, 0, 0);
> +
>  	return TRUE;
>  }
>  
> 

Please create a merge request:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/merge_requests/new