venus: enable wsi image ownership transfer for common wsi
authorChia-I Wu <olvaffe@gmail.com>
Fri, 14 May 2021 19:03:31 +0000 (12:03 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Jun 2021 06:03:31 +0000 (06:03 +0000)
v2: this is split out from the last commit

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10709>

src/virtio/vulkan/vn_image.h

index 74ee7f6..98469c6 100644 (file)
 
 #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;