From abf0792bbeaa96212963ba7c53ddb85c33a1b46a Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Thu, 10 Jan 2019 21:20:35 +0100 Subject: [PATCH] turnip: Make bo_list functions not static --- src/freedreno/vulkan/tu_cmd_buffer.c | 8 ++++---- src/freedreno/vulkan/tu_private.h | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) 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 */ -- 2.30.2