mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 06:30:11 +01:00
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:
parent
62d96a6546
commit
d83aaf4e05
1 changed files with 0 additions and 20 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue