vulkan/wsi: Add a driconf option to force WSI to advertise BGRA8_UNORM first
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 10 Jan 2020 19:16:25 +0000 (13:16 -0600)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jan 2020 19:27:13 +0000 (19:27 +0000)
commit7c16a1ae4e629ccbae3979ec9be105e6b44e0acf
treebf1b44b0e0180e99545f48f9d060bb1aeb1e949a
parentedf6a40cb2a09d58f9244abf0a1432a836a350ce
vulkan/wsi: Add a driconf option to force WSI to advertise BGRA8_UNORM first

The Aztec Ruins benchmark just grabs the first format in the list and
SRGB causes it to render washed out.  With this workaround, it renders
the same as OpenGL.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3350>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3350>
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.c
src/vulkan/wsi/wsi_common.h
src/vulkan/wsi/wsi_common_display.c
src/vulkan/wsi/wsi_common_wayland.c
src/vulkan/wsi/wsi_common_x11.c