util: Add a mapping from VkFormat to PIPE_FORMAT.
authorEric Anholt <eric@anholt.net>
Wed, 6 Nov 2019 23:26:32 +0000 (15:26 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 19 Nov 2019 23:35:52 +0000 (15:35 -0800)
commit3a28281bf8dfd2ad990ccc0a0903a3cc3cada8fa
treeb5122eeca10c6078bf4ffb638b71a4a9817f3d2f
parent36c055c9b727a78aaaafb87c47eae2e83d65a4ad
util: Add a mapping from VkFormat to PIPE_FORMAT.

I'm planning on using this from radv and tu for queries about formats.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/vulkan/util/meson.build
src/vulkan/util/vk_format.c [new file with mode: 0644]
src/vulkan/util/vk_format.h [new file with mode: 0644]