vulkan/formats,zink: move vk_format_from_pipe_format() function
authorYogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Mon, 18 Sep 2023 05:13:24 +0000 (10:43 +0530)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 Oct 2023 19:28:40 +0000 (19:28 +0000)
commitbcc0e1e2af54a90363c5ee12448d614d12a77998
treedabc85ea9edc2c452cd2058b1741bff3e78f1b86
parent8da85d2475da5e883c88f6cc744594a3031c25c3
vulkan/formats,zink: move vk_format_from_pipe_format() function

rename zink_pipe_format_to_vk_format() to vk_format_from_pipe_format()
and put it in common code.

v2: reorder vk_format.h (Chia-I Wu)
    rename to vk_format_from_pipe_format (Chia-I Wu)

Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24672>
src/gallium/drivers/zink/zink_format.c
src/gallium/drivers/zink/zink_format.h
src/gallium/drivers/zink/zink_format_test.c
src/gallium/drivers/zink/zink_screen.c
src/vulkan/util/vk_format.c
src/vulkan/util/vk_format.h