From 4c4e30d8757f722513f9b6a88776748f1be43170 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 8 Nov 2021 17:21:31 +0000 Subject: [PATCH] aux/vk: Add more functions --- src/xrt/auxiliary/vk/vk_helpers.c | 4 ++++ src/xrt/auxiliary/vk/vk_helpers.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/xrt/auxiliary/vk/vk_helpers.c b/src/xrt/auxiliary/vk/vk_helpers.c index f57869717..df8240fed 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.c +++ b/src/xrt/auxiliary/vk/vk_helpers.c @@ -907,6 +907,7 @@ vk_get_device_functions(struct vk_bundle *vk) vk->vkGetImageMemoryRequirements = GET_DEV_PROC(vk, vkGetImageMemoryRequirements); // because we use Vulkan API Version 1.0.x, we can only get the KHR version of this function vk->vkGetImageMemoryRequirements2 = GET_DEV_PROC(vk, vkGetImageMemoryRequirements2KHR); + vk->vkGetImageSubresourceLayout = GET_DEV_PROC(vk, vkGetImageSubresourceLayout); vk->vkBindImageMemory = GET_DEV_PROC(vk, vkBindImageMemory); vk->vkDestroyImage = GET_DEV_PROC(vk, vkDestroyImage); vk->vkCreateImageView = GET_DEV_PROC(vk, vkCreateImageView); @@ -932,7 +933,9 @@ vk_get_device_functions(struct vk_bundle *vk) vk->vkCmdDraw = GET_DEV_PROC(vk, vkCmdDraw); vk->vkCmdDrawIndexed = GET_DEV_PROC(vk, vkCmdDrawIndexed); vk->vkCmdDispatch = GET_DEV_PROC(vk, vkCmdDispatch); + vk->vkCmdCopyBuffer = GET_DEV_PROC(vk, vkCmdCopyBuffer); vk->vkCmdCopyBufferToImage = GET_DEV_PROC(vk, vkCmdCopyBufferToImage); + vk->vkCmdCopyImage = GET_DEV_PROC(vk, vkCmdCopyImage); vk->vkCmdCopyImageToBuffer = GET_DEV_PROC(vk, vkCmdCopyImageToBuffer); vk->vkEndCommandBuffer = GET_DEV_PROC(vk, vkEndCommandBuffer); vk->vkFreeCommandBuffers = GET_DEV_PROC(vk, vkFreeCommandBuffers); @@ -959,6 +962,7 @@ vk_get_device_functions(struct vk_bundle *vk) vk->vkQueueSubmit = GET_DEV_PROC(vk, vkQueueSubmit); vk->vkQueueWaitIdle = GET_DEV_PROC(vk, vkQueueWaitIdle); vk->vkCreateSemaphore = GET_DEV_PROC(vk, vkCreateSemaphore); + vk->vkSignalSemaphore = GET_DEV_PROC(vk, vkSignalSemaphore); vk->vkDestroySemaphore = GET_DEV_PROC(vk, vkDestroySemaphore); vk->vkCreateFence = GET_DEV_PROC(vk, vkCreateFence); vk->vkWaitForFences = GET_DEV_PROC(vk, vkWaitForFences); diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index 662dbb660..04f6467cf 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -157,6 +157,7 @@ struct vk_bundle PFN_vkCreateImage vkCreateImage; PFN_vkGetImageMemoryRequirements vkGetImageMemoryRequirements; PFN_vkGetImageMemoryRequirements2 vkGetImageMemoryRequirements2; + PFN_vkGetImageSubresourceLayout vkGetImageSubresourceLayout; PFN_vkBindImageMemory vkBindImageMemory; PFN_vkDestroyImage vkDestroyImage; PFN_vkCreateImageView vkCreateImageView; @@ -185,7 +186,9 @@ struct vk_bundle PFN_vkCmdDraw vkCmdDraw; PFN_vkCmdDrawIndexed vkCmdDrawIndexed; PFN_vkCmdDispatch vkCmdDispatch; + PFN_vkCmdCopyBuffer vkCmdCopyBuffer; PFN_vkCmdCopyBufferToImage vkCmdCopyBufferToImage; + PFN_vkCmdCopyImage vkCmdCopyImage; PFN_vkCmdCopyImageToBuffer vkCmdCopyImageToBuffer; PFN_vkEndCommandBuffer vkEndCommandBuffer; PFN_vkFreeCommandBuffers vkFreeCommandBuffers; @@ -215,6 +218,7 @@ struct vk_bundle PFN_vkQueueWaitIdle vkQueueWaitIdle; PFN_vkCreateSemaphore vkCreateSemaphore; + PFN_vkSignalSemaphore vkSignalSemaphore; PFN_vkDestroySemaphore vkDestroySemaphore; PFN_vkCreateFence vkCreateFence;