OSDN Git Service

libvulkan: Un-revert and fix VK_PRESENT_MODE_MAILBOX_KHR
authorJesse Hall <jessehall@google.com>
Wed, 10 Feb 2016 06:13:34 +0000 (22:13 -0800)
committerJesse Hall <jessehall@google.com>
Wed, 10 Feb 2016 06:22:34 +0000 (06:22 +0000)
commit0ae0dceca1fb83e095d8de6b811aa193def238a0
tree5c92d0ea33409e8d82c77fadffff8564ec9b585a
parentc5cec281654c5dee2273ce4bebd3a749c3a1119e
libvulkan: Un-revert and fix VK_PRESENT_MODE_MAILBOX_KHR

This reverts commit 9ec497c, which was a revert of f333922, and fixes
the problem that caused the initial revert.

MODE_MAILBOX corresponds to BufferQueue "async" mode; in that mode we
need one extra un-dequeued buffer at all times. We weren't accounting
for that, and weren't allocating enough bufers.

Bug: 26918467
Change-Id: Ice67e6d16828e50413ae453ecf3c67b8fb288f1a
vulkan/libvulkan/swapchain.cpp