mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 23:48:18 +02:00
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:
parent
9a7b785b60
commit
b5a22a43a6
1 changed files with 7 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue