vulkan: Common vk_format_get_component_bits
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Wed, 13 Jul 2022 12:20:36 +0000 (14:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 18 Jul 2022 22:14:06 +0000 (22:14 +0000)
commitfc26fbde3dddd04ea1d9817e01e28c88dcc17cee
treeb125640085ac4d5a29fad872638421344a31bd63
parent2e71e231885f6d5540d4aeb8dd1f232d4fb9ee68
vulkan: Common vk_format_get_component_bits

RADV and PowerVR use the same implementation.
Turnip does use a slightly modified version but the helper only has one
use -> just inline it and get rid of turnip's vk_format.h.

Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17515>
src/amd/vulkan/vk_format.h
src/freedreno/vulkan/meson.build
src/freedreno/vulkan/tu_shader.c
src/freedreno/vulkan/vk_format.h [deleted file]
src/imagination/vulkan/vk_format.h
src/vulkan/util/vk_format.h