summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2016-04-06 14:05:37 -0700
committer Dan Stoza <stoza@google.com> 2016-04-06 14:05:37 -0700
commit2dc3be88bd85791556ab0e6df6a080989886749e (patch)
tree46d493c90fded39592cf141bae4bcaab89baf914 /vulkan/libvulkan/api.cpp
parent90e840f00713bf9c1016c4f2584ef70e0a87ca14 (diff)
SF/HWC2: Reorder makeCurrent to avoid deadlock
Now that we are deferring the release of FramebufferSurface buffers (so that we can return a non-speculative fence), we end up holding two acquired buffers during the call into HWComposer::commit (whereas we previously would have only been holding one, with the other having been released). This means that if the EGL implementation dequeues a buffer as part of eglMakeCurrent, neither of the FramebufferSurface buffers will be free, and the call to dequeueBuffer will block. This change fixes that issue by reordering eglMakeCurrent to occur after the deferred release. Bug: 25684127 Change-Id: I6ec55b3f7b7d0e0f5be6029751cb086feeb52fbe
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions