From: Eric Anholt Date: Fri, 27 Sep 2019 22:20:16 +0000 (-0700) Subject: turnip: Drop unused tu_pack_clear_value() return. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b16c5c98ed434edc27ca1ded67988711ea7732d;p=mesa.git turnip: Drop unused tu_pack_clear_value() return. Reviewed-by: Kristian H. Kristensen --- diff --git a/src/freedreno/vulkan/tu_formats.c b/src/freedreno/vulkan/tu_formats.c index 02dc87a7426..8b8ab968d7f 100644 --- a/src/freedreno/vulkan/tu_formats.c +++ b/src/freedreno/vulkan/tu_formats.c @@ -563,7 +563,7 @@ tu_get_clear_component_value(const VkClearValue *val, int comp, bool color) * * Return the number of uint32_t's used. */ -int +void tu_pack_clear_value(const VkClearValue *val, VkFormat format, uint32_t buf[4]) { const struct vk_format_description *desc = vk_format_description(format); @@ -600,8 +600,6 @@ tu_pack_clear_value(const VkClearValue *val, VkFormat format, uint32_t buf[4]) buf[buf_offset] |= tu_pack_clear_component_value(v, ch) << bit_shift; bit_shift += ch->size; } - - return buf_offset + 1; } static void diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index feb460db566..af1c779885e 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -1223,7 +1223,7 @@ struct tu_native_format const struct tu_native_format * tu6_get_native_format(VkFormat format); -int +void tu_pack_clear_value(const VkClearValue *val, VkFormat format, uint32_t buf[4]);