From: Bas Nieuwenhuizen Date: Thu, 10 Jan 2019 20:20:35 +0000 (+0100) Subject: turnip: Make bo_list functions not static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abf0792bbeaa96212963ba7c53ddb85c33a1b46a;p=mesa.git turnip: Make bo_list functions not static --- diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index b5fde88e615..1407c0cf83b 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -29,26 +29,26 @@ #include "vk_format.h" -static void +void tu_bo_list_init(struct tu_bo_list *list) { list->count = list->capacity = 0; list->handles = NULL; } -static void +void tu_bo_list_destroy(struct tu_bo_list *list) { free(list->handles); } -static void +void tu_bo_list_reset(struct tu_bo_list *list) { list->count = 0; } -static uint32_t +uint32_t tu_bo_list_add(struct tu_bo_list *list, const struct tu_bo *bo) { diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index a6310189cdb..01a06423f15 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -713,6 +713,12 @@ struct tu_bo_list uint32_t *handles; }; +void tu_bo_list_init(struct tu_bo_list *list); +void tu_bo_list_destroy(struct tu_bo_list *list); +void tu_bo_list_reset(struct tu_bo_list *list); +uint32_t tu_bo_list_add(struct tu_bo_list *list, + const struct tu_bo *bo); + struct tu_cmd_stream_entry { /* No ownership */