mesa/src/vulkan
Lionel Landwerlin ad2b4aa378 vulkan/overlay: keep allocating draw data until it can be reused
The original implementation assumed that we could allocate the same
amount of command buffers as the number of images in the swapchain.
But the application could potentially render much faster and rerender
into images that have been submitted for presentation but not yet
presented.

This change keeps on allocating command buffers, vertex buffer, vertex
indices as well as a semaphore and a fence for as long as we can't
reuse a previously submitted one.

This fixes rendering issues in the overlay at high frame rates.

v2: Don't recreate semaphores constantly (Józef)

v3: Drop useless surface & FreeCommandBuffers (Józef)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110655
Cc: 19.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Józef Kucia <joseph.kucia@gmail.com>
2019-05-10 21:54:48 +01:00
..
overlay-layer vulkan/overlay: keep allocating draw data until it can be reused 2019-05-10 21:54:48 +01:00
registry vulkan: Update the XML and headers to 1.1.106 2019-04-15 13:25:43 +00:00
util vulkan/util: generate a helper function to return pNext struct sizes 2019-05-02 17:02:02 +01:00
wsi wsi/wayland: document lack of vkAcquireNextImageKHR timeout support 2019-05-02 11:51:03 +00:00
Android.mk android: Build fixes for OMR1 2019-03-18 11:53:59 +02:00
Makefile.sources vulkan: Add KHR_display extension using DRM [v10] 2018-06-19 14:17:46 -07:00
meson.build vulkan: factor out wsi dependencies 2019-03-18 12:05:13 +00:00