From 23e6689b384ca00f7a9d77cbad90746b98fef5a2 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:49 -0600 Subject: [PATCH] nvk: Re-indent image entrypoints Part-of: --- src/nouveau/vulkan/nvk_image.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/nouveau/vulkan/nvk_image.c b/src/nouveau/vulkan/nvk_image.c index 156e950..1deb88a 100644 --- a/src/nouveau/vulkan/nvk_image.c +++ b/src/nouveau/vulkan/nvk_image.c @@ -50,10 +50,11 @@ static void nvk_image_finish(struct nvk_image *image) vk_image_finish(&image->vk); } -VKAPI_ATTR VkResult VKAPI_CALL nvk_CreateImage(VkDevice _device, - const VkImageCreateInfo *pCreateInfo, - const VkAllocationCallbacks *pAllocator, - VkImage *pImage) +VKAPI_ATTR VkResult VKAPI_CALL +nvk_CreateImage(VkDevice _device, + const VkImageCreateInfo *pCreateInfo, + const VkAllocationCallbacks *pAllocator, + VkImage *pImage) { VK_FROM_HANDLE(nvk_device, device, _device); struct nvk_image *image; @@ -75,9 +76,10 @@ VKAPI_ATTR VkResult VKAPI_CALL nvk_CreateImage(VkDevice _device, return VK_SUCCESS; } -VKAPI_ATTR void VKAPI_CALL nvk_DestroyImage(VkDevice _device, - VkImage _image, - const VkAllocationCallbacks *pAllocator) +VKAPI_ATTR void VKAPI_CALL +nvk_DestroyImage(VkDevice _device, + VkImage _image, + const VkAllocationCallbacks *pAllocator) { VK_FROM_HANDLE(nvk_device, device, _device); VK_FROM_HANDLE(nvk_image, image, _image); @@ -89,10 +91,10 @@ VKAPI_ATTR void VKAPI_CALL nvk_DestroyImage(VkDevice _device, vk_free2(&device->vk.alloc, pAllocator, image); } -VKAPI_ATTR void VKAPI_CALL nvk_GetImageMemoryRequirements2( - VkDevice _device, - const VkImageMemoryRequirementsInfo2 *pInfo, - VkMemoryRequirements2 *pMemoryRequirements) +VKAPI_ATTR void VKAPI_CALL +nvk_GetImageMemoryRequirements2(VkDevice _device, + const VkImageMemoryRequirementsInfo2 *pInfo, + VkMemoryRequirements2 *pMemoryRequirements) { VK_FROM_HANDLE(nvk_device, device, _device); VK_FROM_HANDLE(nvk_image, image, pInfo->image); @@ -114,10 +116,9 @@ VKAPI_ATTR void VKAPI_CALL nvk_GetImageMemoryRequirements2( } VKAPI_ATTR VkResult VKAPI_CALL -nvk_BindImageMemory2( - VkDevice _device, - uint32_t bindInfoCount, - const VkBindImageMemoryInfo *pBindInfos) +nvk_BindImageMemory2(VkDevice _device, + uint32_t bindInfoCount, + const VkBindImageMemoryInfo *pBindInfos) { for (uint32_t i = 0; i < bindInfoCount; ++i) { VK_FROM_HANDLE(nvk_device_memory, mem, pBindInfos[i].memory); -- 2.7.4