Module: Mesa
Branch: main
Commit: 768c737273f6fdfa1c7c2c0efe70fabbc219af95
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=768c737273f6fdfa1c7c2c0efe70fabbc219af95

Author: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Date:   Thu Dec 14 09:28:19 2023 +0100

radv: remove some declared but unused functions/macros

Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26682>

---

 src/amd/vulkan/radv_private.h | 43 -------------------------------------------
 1 file changed, 43 deletions(-)

diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 696daa98f31..5f9b9a012a4 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -175,13 +175,6 @@ align_u64(uint64_t v, uint64_t a)
    return (v + a - 1) & ~(a - 1);
 }
 
-static inline int32_t
-align_i32(int32_t v, int32_t a)
-{
-   assert(a != 0 && a == (a & -a));
-   return (v + a - 1) & ~(a - 1);
-}
-
 /** Alignment must be a power of 2. */
 static inline bool
 radv_is_aligned(uintmax_t n, uintmax_t a)
@@ -198,29 +191,6 @@ radv_minify(uint32_t n, uint32_t levels)
    else
       return MAX2(n >> levels, 1);
 }
-static inline float
-radv_clamp_f(float f, float min, float max)
-{
-   assert(min < max);
-
-   if (f > max)
-      return max;
-   else if (f < min)
-      return min;
-   else
-      return f;
-}
-
-static inline bool
-radv_clear_mask(uint32_t *inout_mask, uint32_t clear_mask)
-{
-   if (*inout_mask & clear_mask) {
-      *inout_mask &= ~clear_mask;
-      return true;
-   } else {
-      return false;
-   }
-}
 
 static inline int
 radv_float_to_sfixed(float value, unsigned frac_bits)
@@ -243,19 +213,6 @@ struct radv_image_view;
 struct radv_instance;
 struct rvcn_decode_buffer_s;
 
-/* A non-fatal assert.  Useful for debugging. */
-#ifdef NDEBUG
-#define radv_assert(x)                                                         
                                        \
-   do {                                                                        
                                        \
-   } while (0)
-#else
-#define radv_assert(x)                                                         
                                        \
-   do {                                                                        
                                        \
-      if (unlikely(!(x)))                                                      
                                        \
-         fprintf(stderr, "%s:%d ASSERT: %s\n", __FILE__, __LINE__, #x);        
                                        \
-   } while (0)
-#endif
-
 /* queue types */
 enum radv_queue_family {
    RADV_QUEUE_GENERAL,

Reply via email to