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 <zhengxingda@iscas.ac.cn>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41569>
This commit is contained in:
Icenowy Zheng 2026-05-14 01:37:19 +08:00 committed by Marge Bot
parent 9a7b785b60
commit b5a22a43a6

View file

@ -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 */