v3dv: be more precise in vkGetImageSubresourceLayout
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 5 Sep 2023 10:39:42 +0000 (12:39 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 7 Sep 2023 06:22:36 +0000 (06:22 +0000)
commit717fbda5367338e1e91abbb1615d5b57655ebb66
tree7ebebd298ccc51ca8391647d5a1c84060a6873d5
parent8019a1b9292e6cf26f17126c50a7329820817e3d
v3dv: be more precise in vkGetImageSubresourceLayout

Only return non-zero values for arrayPitch and depthPitch if
they make sense for the image type.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25074>
src/broadcom/vulkan/v3dv_image.c