vulkan: add vk_x11_strict_image_count option
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 5 Sep 2019 20:54:53 +0000 (23:54 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 15 Sep 2019 12:37:02 +0000 (15:37 +0300)
commit0616b7ac90cf4f86bb409d34101e3a3cceac8cbe
treee610123761218611b1fe3f0d284c149c83607094
parent04dc6074cf7f651b720868e0ba24362b585d1b31
vulkan: add vk_x11_strict_image_count option

This option strictly allocate the minImageCount given by the
application at swapchain creation.

This works around application that do not deal with the fact that the
implementation allocates more images than the minimum specified.

v2: Add values in default drirc (Bas)

v3: specify engine name/version (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111522
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Cc: 19.2 <mesa-stable@lists.freedesktop.org>
src/amd/vulkan/radv_device.c
src/intel/vulkan/anv_device.c
src/util/00-mesa-defaults.conf
src/util/xmlpool/t_options.h
src/vulkan/wsi/wsi_common.h
src/vulkan/wsi/wsi_common_x11.c