Acked-by: Feifei Xu <feifei...@amd.com>

Regards,
Feifei

-----Original Message-----
From: amd-gfx <amd-gfx-boun...@lists.freedesktop.org> On Behalf Of Cui, Flora
Sent: 2019年6月3日 15:26
To: Cui, Flora <flora....@amd.com>; Daenzer, Michel <michel.daen...@amd.com>; 
amd-gfx@lists.freedesktop.org
Subject: [PATCH v2] dri2: reply to client for WaitMSC request in any case

ping...

commit 47613e8e8f4a5e3b25830e3c015a4a217fcbe469
Author: Flora Cui <flora....@amd.com>
Date:   Wed May 29 14:18:50 2019 +0800

     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....@amd.com>

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

在 5/29/2019 2:36 PM, Cui, Flora 写道:
> otherwise client would wait for reply forever and desktop appears hang.
>
> Signed-off-by: Flora Cui <flora....@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;
>   }
>   
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to