pvr: Fix image to buffer copies
authorJames Glanville <james.glanville@imgtec.com>
Tue, 25 Apr 2023 20:20:02 +0000 (21:20 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 2 May 2023 09:04:44 +0000 (09:04 +0000)
commit78df1977fe3025eb2acc62b4658570e220a10c30
tree61fc6601dc20760735e6030a597b09017ad3aeee
parent71980739a10d44eec5f5d9e5b2b9a4e7d9989cca
pvr: Fix image to buffer copies

The code to increment the destination buffer address was wrong. Instead of
incrementing an address on every iteration, the buffer slice size was added
as a static offset to all blits.

Seen in dEQP-VK.draw.renderpass.depth_clamp.d16_unorm, though issues remain.

Signed-off-by: James Glanville <james.glanville@imgtec.com>
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22747>
src/imagination/vulkan/pvr_blit.c