From d31232c7944a8db78fea83e80071cf946676d2b1 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 1 Apr 2022 18:54:18 +0100 Subject: [PATCH] aux/vk: Move vk_insert_image_memory_barrier declaration (NFC) --- src/xrt/auxiliary/vk/vk_helpers.h | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index f04dedbbb..e89b9758c 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -742,8 +742,26 @@ vk_set_image_layout(struct vk_bundle *vk, VkImageLayout new_layout, VkImageSubresourceRange subresource_range); +/*! + * Adds barrier to image + * + * @ingroup aux_vk + */ +void +vk_insert_image_memory_barrier(struct vk_bundle *vk, + VkCommandBuffer cmdbuffer, + VkImage image, + VkAccessFlags srcAccessMask, + VkAccessFlags dstAccessMask, + VkImageLayout oldImageLayout, + VkImageLayout newImageLayout, + VkPipelineStageFlags srcStageMask, + VkPipelineStageFlags dstStageMask, + VkImageSubresourceRange subresourceRange); + /*! * @pre Requires successful call to vk_init_mutex + * * @ingroup aux_vk */ VkResult @@ -975,24 +993,6 @@ vk_csci_get_image_view_aspect(VkFormat format, enum xrt_swapchain_usage_bits bit VkExternalMemoryHandleTypeFlags vk_csci_get_image_external_handle_type(struct vk_bundle *vk); -/*! - * - * Adds barrier to image - * - */ -void -vk_insert_image_memory_barrier(struct vk_bundle *vk, - VkCommandBuffer cmdbuffer, - VkImage image, - VkAccessFlags srcAccessMask, - VkAccessFlags dstAccessMask, - VkImageLayout oldImageLayout, - VkImageLayout newImageLayout, - VkPipelineStageFlags srcStageMask, - VkPipelineStageFlags dstStageMask, - VkImageSubresourceRange subresourceRange); - - /* *