From 97304dffdfca179d79000df0ddb38ba46e6a1f15 Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Mon, 15 Jul 2024 15:46:49 -0700 Subject: [PATCH] gfxstream: guest: nuke unused functions These functions are not used. Reviewed-by: Aaron Ruby Acked-by: Yonggang Luo Acked-by: Adam Jackson Part-of: --- src/gfxstream/guest/vulkan_enc/vk_util.h | 26 ------------------------ 1 file changed, 26 deletions(-) diff --git a/src/gfxstream/guest/vulkan_enc/vk_util.h b/src/gfxstream/guest/vulkan_enc/vk_util.h index 61ce359e3f6..4639064543f 100644 --- a/src/gfxstream/guest/vulkan_enc/vk_util.h +++ b/src/gfxstream/guest/vulkan_enc/vk_util.h @@ -204,10 +204,6 @@ const T* vk_find_struct(const H* head) { vk_get_vk_struct_id::id)); } -uint32_t vk_get_driver_version(void); - -uint32_t vk_get_version_override(void); - #define VK_EXT_OFFSET (1000000000UL) #define VK_ENUM_EXTENSION(__enum) \ ((__enum) >= VK_EXT_OFFSET ? ((((__enum)-VK_EXT_OFFSET) / 1000UL) + 1) : 0) @@ -242,18 +238,6 @@ void vk_append_struct(vk_struct_chain_iterator* i, T* vk_struct) { *i = vk_make_chain_iterator(vk_struct); } -bool vk_descriptor_type_has_image_view(VkDescriptorType type) { - switch (type) { - case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER: - case VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE: - case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE: - case VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT: - return true; - default: - return false; - } -} - bool vk_descriptor_type_has_descriptor_buffer(VkDescriptorType type) { switch (type) { case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER: @@ -266,16 +250,6 @@ bool vk_descriptor_type_has_descriptor_buffer(VkDescriptorType type) { } } -bool vk_descriptor_type_has_texel_buffer(VkDescriptorType type) { - switch (type) { - case VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER: - case VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER: - return true; - default: - return false; - } -} - } // namespace #endif /* VK_UTIL_H */