Debian Codegraph @

src/imagination/vulkan/pvr_free_list.h

raw
1 /*
2 * Copyright © 2022 Imagination Technologies Ltd.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7 #ifndef PVR_FREE_LIST_H
8 #define PVR_FREE_LIST_H
9
10 #include <vulkan/vulkan_core.h>
11 #include <stdint.h>
12
13 struct pvr_bo;
14 struct pvr_device;
15 struct pvr_winsys_free_list;
16
17 struct pvr_free_list {
18 struct pvr_device *device;
19
20 uint64_t size;
21
22 struct pvr_bo *bo;
23
24 struct pvr_winsys_free_list *ws_free_list;
25 };
26
27 VkResult pvr_free_list_create(struct pvr_device *device,
28 uint32_t initial_size,
29 uint32_t max_size,
30 uint32_t grow_size,
31 uint32_t grow_threshold,
32 struct pvr_free_list *parent_free_list,
33 struct pvr_free_list **const free_list_out);
34
35 void pvr_free_list_destroy(struct pvr_free_list *free_list);
36
37 #endif /* PVR_FREE_LIST */