summaryrefslogtreecommitdiff
path: root/src/vulkan/wsi/wsi_common_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/wsi/wsi_common_private.h')
-rw-r--r--src/vulkan/wsi/wsi_common_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_private.h b/src/vulkan/wsi/wsi_common_private.h
index 0e8c1511153..10008c53867 100644
--- a/src/vulkan/wsi/wsi_common_private.h
+++ b/src/vulkan/wsi/wsi_common_private.h
@@ -27,6 +27,7 @@
#include "vulkan/runtime/vk_object.h"
struct wsi_image;
+struct wsi_swapchain;
struct wsi_image_info {
VkImageCreateInfo create;
@@ -42,6 +43,10 @@ struct wsi_image_info {
struct VkDrmFormatModifierPropertiesEXT *modifier_props;
uint8_t *(*alloc_shm)(struct wsi_image *image, unsigned size);
+
+ VkResult (*create_mem)(const struct wsi_swapchain *chain,
+ const struct wsi_image_info *info,
+ struct wsi_image *image);
};
struct wsi_image {
@@ -147,6 +152,10 @@ wsi_configure_image(const struct wsi_swapchain *chain,
void
wsi_destroy_image_info(const struct wsi_swapchain *chain,
struct wsi_image_info *info);
+VkResult
+wsi_create_image(const struct wsi_swapchain *chain,
+ const struct wsi_image_info *info,
+ struct wsi_image *image);
void
wsi_destroy_image(const struct wsi_swapchain *chain,
struct wsi_image *image);