pvr: Clean up & fix sampler border color support
authorMatt Coster <matt.coster@imgtec.com>
Fri, 11 Aug 2023 13:04:59 +0000 (14:04 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 Oct 2023 10:58:34 +0000 (10:58 +0000)
commitc619d9c1b6cdc6b76442fc70ab260961b28254cb
tree43c79c1a7dcff1707e27d38adf11acff5b1eefd5
parentefb9b036373e07bef811e98f648f366d5b63a41f
pvr: Clean up & fix sampler border color support

Take advantage of some vk_sampler goodness and migrate all pvr
tex_formats to map to pipe_formats in pvr_formats.c. This allows us to
get rid of all the nasty manual packing functions.

This cleanup incidentally fixes some bad swizzling that was happening
in the manual handling.

Fixes: 4a2e6284 pvr: Add support for sampler border colors
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25270>
src/imagination/vulkan/pvr_border.c
src/imagination/vulkan/pvr_border.h
src/imagination/vulkan/pvr_formats.c
src/imagination/vulkan/pvr_formats.h