From d83aaf4e05c20f05685a5170bc2da59966ba2d1d Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 8 Apr 2024 14:49:44 +0300 Subject: [PATCH] anv: reuse vk_common_GetImageSubresourceLayout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: José Roberto de Souza Part-of: --- src/intel/vulkan/anv_image.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 3af8cb97243..82d72e69826 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -2648,26 +2648,6 @@ anv_get_image_subresource_layout(const struct anv_image *image, } } -void anv_GetImageSubresourceLayout( - VkDevice device, - VkImage _image, - const VkImageSubresource* pSubresource, - VkSubresourceLayout* pLayout) -{ - ANV_FROM_HANDLE(anv_image, image, _image); - - VkImageSubresource2KHR subresource = { - .sType = VK_STRUCTURE_TYPE_IMAGE_SUBRESOURCE_2_KHR, - .imageSubresource = *pSubresource, - }; - VkSubresourceLayout2KHR layout = { - .sType = VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2_KHR - }; - anv_get_image_subresource_layout(image, &subresource, &layout); - - *pLayout = layout.subresourceLayout; -} - void anv_GetDeviceImageSubresourceLayoutKHR( VkDevice _device, const VkDeviceImageSubresourceInfoKHR* pInfo,