summaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-01-10 21:20:35 +0100
committerChia-I Wu <[email protected]>2019-03-11 10:01:41 -0700
commitabf0792bbeaa96212963ba7c53ddb85c33a1b46a (patch)
tree46811fb771152ea7ea38d716aec120792747abf6 /src/freedreno/vulkan
parent65e0e790548d3ef65f26d0fc6b1b370d93c577fb (diff)
turnip: Make bo_list functions not static
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r--src/freedreno/vulkan/tu_cmd_buffer.c8
-rw-r--r--src/freedreno/vulkan/tu_private.h6
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 */