v3dv: fix copy image to buffer
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 16 Jan 2020 16:09:36 +0000 (17:09 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:26 +0000 (21:21 +0000)
commit54374f36dfe46caebda094c53d19b20fbdd8f824
treef25e6b69ae8b950490beac3169d0f2952dfeeaaa
parentbeee18103e5198ebbf2f0c58111e7cc42a1c6fba
v3dv: fix copy image to buffer

If either of bufferRowLength or bufferImageHeight are zero, then that
aspect alone of the image is tighly packed. We were assuming that if
either was zero both aspects were tightly packed, which is wrong.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_meta_copy.c