Re: [Mesa-dev] [PATCH v2] platform_android: prevent deadlock in droid_swap_buffers

2016-06-07 Thread Emil Velikov
Hi Haixia, On 2 June 2016 at 20:48, Haixia Shi wrote: > To avoid blocking other EGL calls, release the display mutex before > we enqueue buffer to android frameworks and re-acquire the mutex > upon return. > > v2: moved lock/unlock inside droid_window_enqueue_buffer(). > Thanks for re-spinning th

[Mesa-dev] [PATCH v2] platform_android: prevent deadlock in droid_swap_buffers

2016-06-02 Thread Haixia Shi
To avoid blocking other EGL calls, release the display mutex before we enqueue buffer to android frameworks and re-acquire the mutex upon return. v2: moved lock/unlock inside droid_window_enqueue_buffer(). TEST=verify pinch zoom in Photos app no longer causes hangs Signed-off-by: Haixia Shi ---