Revert "vulkan/wsi/x11: Ensure we create at least minImageCount images."
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 1 Jul 2020 05:50:08 +0000 (07:50 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 08:31:57 +0000 (08:31 +0000)
commit311b9f25834d9ad6ad91f9eb41ec77ab71ab2a73
treed77d1d768a971c1352d55890641f43ad8893da79
parent11a6a96f8a5fbec77353618d158be391e46ca647
Revert "vulkan/wsi/x11: Ensure we create at least minImageCount images."

This breaks some games like Wolfenstein Youngblood or Wolfenstein 2
that crash at launch if the number of images is more than what they
expected.

We could add vk_x11_strict_image_count to fix these game bugs but
it seems more conservative to revert that change and add a new wsi
drirc workaround for Doom Eternal.

This reverts commit 5f97dfc4c848cb6388ec138c19a22a8a880901d1.

Cc: 20.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5704>
src/vulkan/wsi/wsi_common_x11.c