v3dv: don't swap RB channels when copying images to buffers
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 23 Jan 2020 12:01:58 +0000 (13:01 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:26 +0000 (21:21 +0000)
commitc005a18a5665bae84f64e97dd4187cd30642f4d0
treedcc92c17e3b0b24a92114f480d2eede28cb0c21a
parent9a72a79d1c2f0c0924f044a98d3c8a86defa3a40
v3dv: don't swap RB channels when copying images to buffers

We don't need to do this, since we are just copying. Also, we are not
swapping on the store, so doing it on the load would be incorrect.
This gets the prime blit present path in WSI common to render R/B
channels correctly after blitting from the BGRA image to the linear
buffer for display output.

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