vulkan/wsi/x11: add sent image counter
authorRoman Gilg <subdiff@gmail.com>
Mon, 31 Aug 2020 09:33:27 +0000 (11:33 +0200)
committerRoman Gilg <subdiff@gmail.com>
Tue, 1 Sep 2020 11:59:41 +0000 (13:59 +0200)
commitd0bc1ad3776bce7d4b356e2a3d8bdbb9ae64e588
tree7ff9fe40fad42d083d90adcbc256e304e0f8485b
parent68957a82562d13b3f0d21a04ce633ffd236e6036
vulkan/wsi/x11: add sent image counter

Add a counter to count how many images from our swapchain are currently "sent"
to the X server via Present extension. An image is sent when it has been
presented but we have not yet received an idle event for it.

CC: mesa-stable
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Simon Ser <contact@emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6513>
src/vulkan/wsi/wsi_common_x11.c