v3dv: implement fallback for partial image copies
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 29 Apr 2020 12:19:33 +0000 (14:19 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:30 +0000 (21:21 +0000)
commiteac43d06ba8f232b8584d59dddac2f1829ce5042
tree22049c0f2328b4fde8f8ff81198efbea483c0dd6
parent1b4a9c7d450739350516b91c9ff913932ed6a9e9
v3dv: implement fallback for partial image copies

For this we use blits with nearest filtering and choose a compatible
format for the render target if the copy format is not renderable.

This works for all supported formats except combined depth/stencil
(for which we don't support blitting for now) and compressed formats.

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