From 5a2088ee3ecce7a1afe481128e9f9c67e6beeb9e Mon Sep 17 00:00:00 2001 From: Moses Turner Date: Fri, 18 Feb 2022 19:15:03 -0600 Subject: [PATCH] aux/vk: Add vkCmdBlitImage to vk_helpers --- scripts/generate_vk_helpers.py | 1 + src/xrt/auxiliary/vk/vk_helpers.c | 2 ++ src/xrt/auxiliary/vk/vk_helpers.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py index cd937df65..cd74cc8b7 100755 --- a/scripts/generate_vk_helpers.py +++ b/scripts/generate_vk_helpers.py @@ -64,6 +64,7 @@ def get_device_cmds(): Cmd("vkCmdCopyBufferToImage"), Cmd("vkCmdCopyImage"), Cmd("vkCmdCopyImageToBuffer"), + Cmd("vkCmdBlitImage"), Cmd("vkEndCommandBuffer"), Cmd("vkFreeCommandBuffers"), None, diff --git a/src/xrt/auxiliary/vk/vk_helpers.c b/src/xrt/auxiliary/vk/vk_helpers.c index 7de170ff0..7cc18d3e7 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.c +++ b/src/xrt/auxiliary/vk/vk_helpers.c @@ -13,6 +13,7 @@ * * @author Jakob Bornecrantz * @author Lubosz Sarnecki + * @author Moses Turner * @ingroup aux_vk */ @@ -1059,6 +1060,7 @@ vk_get_device_functions(struct vk_bundle *vk) vk->vkCmdCopyBufferToImage = GET_DEV_PROC(vk, vkCmdCopyBufferToImage); vk->vkCmdCopyImage = GET_DEV_PROC(vk, vkCmdCopyImage); vk->vkCmdCopyImageToBuffer = GET_DEV_PROC(vk, vkCmdCopyImageToBuffer); + vk->vkCmdBlitImage = GET_DEV_PROC(vk, vkCmdBlitImage); vk->vkEndCommandBuffer = GET_DEV_PROC(vk, vkEndCommandBuffer); vk->vkFreeCommandBuffers = GET_DEV_PROC(vk, vkFreeCommandBuffers); diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index a28a83d5c..c431b7c7a 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -13,6 +13,7 @@ * * @author Jakob Bornecrantz * @author Lubosz Sarnecki + * @author Moses Turner * @ingroup aux_vk */ @@ -211,6 +212,7 @@ struct vk_bundle PFN_vkCmdCopyBufferToImage vkCmdCopyBufferToImage; PFN_vkCmdCopyImage vkCmdCopyImage; PFN_vkCmdCopyImageToBuffer vkCmdCopyImageToBuffer; + PFN_vkCmdBlitImage vkCmdBlitImage; PFN_vkEndCommandBuffer vkEndCommandBuffer; PFN_vkFreeCommandBuffers vkFreeCommandBuffers;