summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;