From b5a22a43a6bb575b5d45348d61922184e8f098f6 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Thu, 14 May 2026 01:37:19 +0800 Subject: [PATCH] pvr: implement GetImageSubresourceLayout2 As the functionality of GetImageSubresourceLayout was already a dedicated function, simply changing the parameters for the function call is enough to implement GetImageSubresourceLayout2. Signed-off-by: Icenowy Zheng Reviewed-by: Frank Binns Part-of: --- src/imagination/vulkan/pvr_image.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/imagination/vulkan/pvr_image.c b/src/imagination/vulkan/pvr_image.c index 3ba53aecdf5..1715d554169 100644 --- a/src/imagination/vulkan/pvr_image.c +++ b/src/imagination/vulkan/pvr_image.c @@ -428,14 +428,16 @@ void pvr_get_image_subresource_layout(const struct pvr_image *image, layout->size = mip_level->size; } -void pvr_GetImageSubresourceLayout(VkDevice device, - VkImage _image, - const VkImageSubresource *subresource, - VkSubresourceLayout *layout) +void pvr_GetImageSubresourceLayout2(VkDevice device, + VkImage _image, + const VkImageSubresource2 *pSubresource, + VkSubresourceLayout2 *pLayout) { VK_FROM_HANDLE(pvr_image, image, _image); - pvr_get_image_subresource_layout(image, subresource, layout); + pvr_get_image_subresource_layout(image, + &pSubresource->imageSubresource, + &pLayout->subresourceLayout); } /* Leave this at the very end, to avoid leakage of HW-defs here */