anv: remove some unused functions
authorTapani Pälli <tapani.palli@intel.com>
Fri, 28 Oct 2022 10:05:21 +0000 (13:05 +0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 31 Oct 2022 06:59:36 +0000 (06:59 +0000)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19368>

src/intel/vulkan/anv_private.h

index 78e0ac6..59695a8 100644 (file)
@@ -354,17 +354,6 @@ anv_clamp_f(float f, float min, float max)
       return f;
 }
 
-static inline bool
-anv_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 union isl_color_value
 vk_to_isl_color(VkClearColorValue color)
 {
@@ -398,20 +387,6 @@ vk_to_isl_color_with_format(VkClearColorValue color, enum isl_format format)
    return isl_color;
 }
 
-static inline void *anv_unpack_ptr(uintptr_t ptr, int bits, int *flags)
-{
-   uintptr_t mask = (1ull << bits) - 1;
-   *flags = ptr & mask;
-   return (void *) (ptr & ~mask);
-}
-
-static inline uintptr_t anv_pack_ptr(void *ptr, int bits, int flags)
-{
-   uintptr_t value = (uintptr_t) ptr;
-   uintptr_t mask = (1ull << bits) - 1;
-   return value | (mask & flags);
-}
-
 /**
  * Warn on ignored extension structs.
  *