diff options
author | Jason Ekstrand <[email protected]> | 2020-01-10 13:16:25 -0600 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-14 19:27:13 +0000 |
commit | 7c16a1ae4e629ccbae3979ec9be105e6b44e0acf (patch) | |
tree | bf1b44b0e0180e99545f48f9d060bb1aeb1e949a /src/util | |
parent | edf6a40cb2a09d58f9244abf0a1432a836a350ce (diff) |
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 <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3350>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3350>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/00-mesa-defaults.conf | 1 | ||||
-rw-r--r-- | src/util/xmlpool/t_options.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf index e5f333942b7..8702a317d79 100644 --- a/src/util/00-mesa-defaults.conf +++ b/src/util/00-mesa-defaults.conf @@ -503,6 +503,7 @@ TODO: document the other workarounds. <application name="gfxbench" executable="testfw_app"> <option name="vk_x11_override_min_image_count" value="2" /> + <option name="vk_wsi_force_bgra8_unorm_first" value="true" /> </application> <!-- Gallium Nine workarounds: --> diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h index fe186c1fa79..1d8ea07ebdd 100644 --- a/src/util/xmlpool/t_options.h +++ b/src/util/xmlpool/t_options.h @@ -225,6 +225,11 @@ DRI_CONF_OPT_BEGIN_B(adaptive_sync,def) \ DRI_CONF_DESC(en,gettext("Adapt the monitor sync to the application performance (when possible)")) \ DRI_CONF_OPT_END +#define DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(def) \ +DRI_CONF_OPT_BEGIN_B(vk_wsi_force_bgra8_unorm_first, def) \ + DRI_CONF_DESC(en,gettext("Force vkGetPhysicalDeviceSurfaceFormatsKHR to return VK_FORMAT_B8G8R8A8_UNORM as the first format")) \ +DRI_CONF_OPT_END + #define DRI_CONF_VK_X11_OVERRIDE_MIN_IMAGE_COUNT(def) \ DRI_CONF_OPT_BEGIN_V(vk_x11_override_min_image_count, int, def, "0:999") \ DRI_CONF_DESC(en,gettext("Override the VkSurfaceCapabilitiesKHR::minImageCount (0 = no override)")) \ |