tu: Implement fallback linear staging blit for CopyImage
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 12 May 2020 10:47:03 +0000 (12:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 13:39:04 +0000 (13:39 +0000)
commitb408734e5e2fe1e1ef08080c4425ad8a7ed33579
tree92c75ca44f12234da60892d28e09e298e912d9cf
parent40e842c009699a3e8b7ffff2f75b3070df41c752
tu: Implement fallback linear staging blit for CopyImage

Also, rewrite the format decision code so that we correctly decide when
the linear fallback is needed, even if UBWC is disabled. As part of
that, I also moved around some of the code to handle compressed formats
to make sure that copying compressed formats with a linear staging blit
works (this is now possible since we started allowing tiled compressed
textures).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5007>
src/freedreno/vulkan/tu_clear_blit.c