From 889a8df5bda5681bb0e14c82df7aed54b59f243d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 14 May 2021 12:03:31 -0700 Subject: venus: enable wsi image ownership transfer for common wsi v2: this is split out from the last commit Signed-off-by: Chia-I Wu Reviewed-by: Yiwei Zhang (v1) Part-of: --- src/virtio/vulkan/vn_image.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/virtio/vulkan/vn_image.h b/src/virtio/vulkan/vn_image.h index 74ee7f6e2ab..98469c60adf 100644 --- a/src/virtio/vulkan/vn_image.h +++ b/src/virtio/vulkan/vn_image.h @@ -13,12 +13,10 @@ #include "vn_common.h" -/* XXX drop the #ifdef after fixing common wsi */ -#ifdef ANDROID +/* changing this to VK_IMAGE_LAYOUT_PRESENT_SRC_KHR disables ownership + * transfers and can be useful for debugging + */ #define VN_PRESENT_SRC_INTERNAL_LAYOUT VK_IMAGE_LAYOUT_GENERAL -#else -#define VN_PRESENT_SRC_INTERNAL_LAYOUT VK_IMAGE_LAYOUT_PRESENT_SRC_KHR -#endif struct vn_image_create_deferred_info { VkImageCreateInfo create; -- cgit v1.2.3