anv: reuse vk_common_GetImageSubresourceLayout
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28632>
This commit is contained in:
committed by
Marge Bot
parent
62d96a6546
commit
d83aaf4e05
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user