Skip to content

Move common format functions to vulkan/util/vk_format.h

Moving duplicate vk_format helper functions to common vulkan/util/vk_format.h and also renaming imagination's vk_format_get_component_size_in_bits to match how amd and freedreno name the same function. Not moving this function to common code as freedreno's implementation is a bit different.

Also changing amd's vk_format_get_component_bits to use util_format_get_component_bits implementation.

Signed-off-by: Rajnesh Kanwal rajnesh.kanwal@imgtec.com

/cc @jekstrand @frankbinns

Edited by Rajnesh Kanwal

Merge request reports