summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2021-05-14 12:03:31 -0700
committerMarge Bot <eric+marge@anholt.net>2021-06-03 06:03:31 +0000
commit889a8df5bda5681bb0e14c82df7aed54b59f243d (patch)
tree3ec7a1ad6e46cd5eecf0e27a78adef3ff8256728
parent676abf12dc6f1d03dbf73cf5370f78578576e0ed (diff)
venus: enable wsi image ownership transfer for common wsi
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>
-rw-r--r--src/virtio/vulkan/vn_image.h8
1 files 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;