zink: fix max acquired image count
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 3 Feb 2023 13:40:25 +0000 (08:40 -0500)
committerEric Engestrom <eric@engestrom.ch>
Wed, 8 Feb 2023 20:34:45 +0000 (20:34 +0000)
commitedb82453e1fed7a6fce1e01571829bbfa6c9a04e
tree27e00575f78723e00e149ce277993201f71f434f
parentdf96e9c0a078a9d9603d37dc675733fefd88ca36
zink: fix max acquired image count

according to spec, the maximum number of acquired images can be calculated with

swapchain_size - VkSurfaceCapabilitiesKHR::minImageCount + 1

the previous calculation was both wrong and occurring in the wrong place,
so this corrects both issues

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21095>
(cherry picked from commit 89cf0a3bdc9949c54d8d7965a2d51bed91b6d10a)
.pick_status.json
src/gallium/drivers/zink/zink_kopper.c