turnip: Drop unused tu_pack_clear_value() return.
authorEric Anholt <eric@anholt.net>
Fri, 27 Sep 2019 22:20:16 +0000 (15:20 -0700)
committerJonathan Marek <jonathan@marek.ca>
Tue, 15 Oct 2019 11:56:19 +0000 (07:56 -0400)
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/vulkan/tu_formats.c
src/freedreno/vulkan/tu_private.h

index 02dc87a7426fef91b7699b7c6accc1cf53e64f93..8b8ab968d7fef37c93f5f63024b225c5dd94bbde 100644 (file)
@@ -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
index feb460db566043c9a36b7b9731284c94bdde539c..af1c779885e9639ce01631fe798ebc19a7ca0e77 100644 (file)
@@ -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]);