vk/format, v3dv: Add a vulkan -> pipe swizzle helper
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 13 Oct 2021 15:28:07 +0000 (17:28 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 Oct 2021 16:00:38 +0000 (16:00 +0000)
commit7a90aa8d2e36ed65d0be14eaa03aeaa943a2c00b
treec8cc18e8208c82e1a9a080ce427a9ed3cf53eaaf
parent7a2e40df5e8490de739c66865f90fa6804e41f6d
vk/format, v3dv: Add a vulkan -> pipe swizzle helper

And use it to replace the one in v3dv.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13359>
src/broadcom/vulkan/v3dv_image.c
src/vulkan/util/vk_format.c
src/vulkan/util/vk_format.h