summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-11-15 22:11:23 -0800
committerJason Ekstrand <[email protected]>2017-12-04 10:04:19 -0800
commit66dc61821576a16f118162ca979b404b388bce40 (patch)
treec39bc772c6492810dd0716dbb14072793c5ee4b9 /src/vulkan
parentcd881dafad9bdb5a8f94ae272c56c7e30ee28d09 (diff)
vulkan/wsi: Add a mock image creation extension
Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/wsi/wsi_common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h
index 15142f3e536..243bc6f83db 100644
--- a/src/vulkan/wsi/wsi_common.h
+++ b/src/vulkan/wsi/wsi_common.h
@@ -30,6 +30,24 @@
#include <vulkan/vulkan.h>
#include <vulkan/vk_icd.h>
+/* This is guaranteed to not collide with anything because it's in the
+ * VK_KHR_swapchain namespace but not actually used by the extension.
+ */
+#define VK_STRUCTURE_TYPE_WSI_IMAGE_CREATE_INFO_MESA (VkStructureType)1000001002
+#define VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA (VkStructureType)1000001003
+
+struct wsi_image_create_info {
+ VkStructureType sType;
+ const void *pNext;
+ bool scanout;
+};
+
+struct wsi_memory_allocate_info {
+ VkStructureType sType;
+ const void *pNext;
+ bool implicit_sync;
+};
+
struct wsi_image {
VkImage image;
VkDeviceMemory memory;