diff options
author | Eric Anholt <[email protected]> | 2019-09-27 15:20:16 -0700 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-10-15 07:56:19 -0400 |
commit | 1b16c5c98ed434edc27ca1ded67988711ea7732d (patch) | |
tree | 89f783142d729233dc576ae3358db4e3795aee25 | |
parent | 8626d339865c6d7b32240c6b864be67bc8e9b681 (diff) |
turnip: Drop unused tu_pack_clear_value() return.
Reviewed-by: Kristian H. Kristensen <[email protected]>
-rw-r--r-- | src/freedreno/vulkan/tu_formats.c | 4 | ||||
-rw-r--r-- | 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]); |