vulkan/wsi/x11: Ensure we create at least minImageCount images.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 28 Mar 2020 21:43:32 +0000 (22:43 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 09:18:01 +0000 (09:18 +0000)
commit5f97dfc4c848cb6388ec138c19a22a8a880901d1
treead8a947e7df489fc4891b90f2ba8b1cf79c7ed4a
parent7b3976d3f86d41ccc130b6734630814acf538d28
vulkan/wsi/x11: Ensure we create at least minImageCount images.

Doom Eternal happily creates a swapchain with 2 images for IMMEDIATE...

This fixes a 10% performance issues with Doom Eternal for me.

Since the game only sets a minImageCount increasing till our own minimum
is totally okay.

CC: <stable@lists.freedesktop.org>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2684
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3156
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4368>
src/vulkan/wsi/wsi_common_x11.c