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

Author: Lionel Landwerlin <[email protected]>
Date:   Fri Oct 20 15:38:54 2023 +0300

anv: make a couple of descriptor function private

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Rohan Garg <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897>

---

 src/intel/vulkan/anv_descriptor_set.c | 4 ++--
 src/intel/vulkan/anv_private.h        | 8 --------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/intel/vulkan/anv_descriptor_set.c 
b/src/intel/vulkan/anv_descriptor_set.c
index 71ca443f97d..6c12103d1af 100644
--- a/src/intel/vulkan/anv_descriptor_set.c
+++ b/src/intel/vulkan/anv_descriptor_set.c
@@ -746,7 +746,7 @@ anv_descriptor_set_layout_empty(const struct 
anv_descriptor_set_layout *set_layo
    return set_layout->binding_count == 0;
 }
 
-uint32_t
+static uint32_t
 anv_descriptor_set_layout_descriptor_buffer_size(const struct 
anv_descriptor_set_layout *set_layout,
                                                  uint32_t var_desc_count)
 {
@@ -1279,7 +1279,7 @@ anv_descriptor_pool_free_state(struct anv_descriptor_pool 
*pool,
    pool->surface_state_free_list = entry;
 }
 
-size_t
+static size_t
 anv_descriptor_set_layout_size(const struct anv_descriptor_set_layout *layout,
                                bool host_only, uint32_t var_desc_count)
 {
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index ce1b27426f9..886f66b2045 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -2624,14 +2624,6 @@ struct anv_descriptor_pool {
    char host_mem[0];
 };
 
-size_t
-anv_descriptor_set_layout_size(const struct anv_descriptor_set_layout *layout,
-                               bool host_only, uint32_t var_desc_count);
-
-uint32_t
-anv_descriptor_set_layout_descriptor_buffer_size(const struct 
anv_descriptor_set_layout *set_layout,
-                                                 uint32_t var_desc_count);
-
 bool
 anv_push_descriptor_set_init(struct anv_cmd_buffer *cmd_buffer,
                              struct anv_push_descriptor_set *push_set,

Reply via email to