summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author Ian Elliott <ianelliott@google.com> 2021-11-24 16:32:41 -0700
committer Ian Elliott <ianelliott@google.com> 2021-11-24 16:46:57 -0700
commitbfb7199b594c705116571744c1504f29d5cfebef (patch)
tree41e15db36e1632b03f8fa920a07002a6e355c5d9 /libs/gui/BufferQueueThreadState.cpp
parent38a129962a2c2c93fd5c3b31703ecad1e17ddd4c (diff)
Vulkan: Work-around Android start-up race condition
Work-around a race condition during Android start-up, while the `service.sf.present_timestamp` property is asynchronously working its way from HWC to other processes (especially render engine). This can cause the two successive calls to EnumerateDeviceExtensionProperties to have different numbers of extensions. That causes the second call to return VK_INCOMPLETE, which can cause vkCreateDevice() to fail. The work-around is to add 1 to the "count" returned by the first call. Test: Manual test with additional logging Bug: b/206733351 Change-Id: I7b29998d670196d2af772f19be30b2e9498acfe0
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions