[wsi] Fall back to Y tiled images
The wayland bridge assumes 'gpu optimal' for performance
Bug:65039
Change-Id: I34ed57910727cf18165285c560a270328b565e92
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/mesa/+/453895
Reviewed-by: John Bauman <jbauman@google.com>
diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c
index 0086751..1b9f3b0 100644
--- a/src/vulkan/wsi/wsi_common.c
+++ b/src/vulkan/wsi/wsi_common.c
@@ -417,11 +417,15 @@
uint32_t image_modifier_count = 0, modifier_prop_count = 0;
struct VkDrmFormatModifierPropertiesEXT *modifier_props = NULL;
uint64_t *image_modifiers = NULL;
+
if (num_modifier_lists == 0) {
/* If we don't have modifiers, fall back to the legacy "scanout" flag */
image_wsi_info = (struct wsi_image_create_info) {
.sType = VK_STRUCTURE_TYPE_WSI_IMAGE_CREATE_INFO_MESA,
- .scanout = true,
+ // TODO(fxbug.dev/65039) - this workaround forces Y tiling because
+ // wayland bridge assumes it, for best performance in the default
+ // composition case.
+ .scanout = false,
};
__vk_append_struct(&image_info, &image_wsi_info);
} else {