From 1b16c5c98ed434edc27ca1ded67988711ea7732d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 27 Sep 2019 15:20:16 -0700 Subject: [PATCH] turnip: Drop unused tu_pack_clear_value() return. Reviewed-by: Kristian H. Kristensen --- src/freedreno/vulkan/tu_formats.c | 4 +--- src/freedreno/vulkan/tu_private.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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]); -- 2.30.2