aboutsummaryrefslogtreecommitdiff
path: root/src/vulkan/runtime/vk_meta.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@google.com>2024-01-10 15:09:02 -0800
committerGurchetan Singh <gurchetansingh@google.com>2024-03-05 18:20:46 -0800
commitcc438923afa5112befb1178114150c67a532f2f1 (patch)
tree6f61ab0df0c31a599744c2e4e7f244a1e5880e76 /src/vulkan/runtime/vk_meta.h
parentb394b814823c40b343ddcc6cb8671a4680bbecaf (diff)
downloadmesa3d-cc438923afa5112befb1178114150c67a532f2f1.tar.gz
ANDROID: vulkan/runtime: introduce vk_meta_object_list
Code movement: Move the object list + destroy_object function to separate files. This allows vk_command_buffer.{h, c} to not depend on all of vk_meta, which depends on vk_pipeline, which depends on NIR. Bug: 327408955 Test: compile Change-Id: Ie9618ceca772629f46dab8f36835f11d0df16f46
Diffstat (limited to 'src/vulkan/runtime/vk_meta.h')
-rw-r--r--src/vulkan/runtime/vk_meta.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/vulkan/runtime/vk_meta.h b/src/vulkan/runtime/vk_meta.h
index 28379b0948d..48e3c391d30 100644
--- a/src/vulkan/runtime/vk_meta.h
+++ b/src/vulkan/runtime/vk_meta.h
@@ -27,7 +27,6 @@
#include "vk_object.h"
#include "util/simple_mtx.h"
-#include "util/u_dynarray.h"
#ifdef __cplusplus
extern "C" {
@@ -181,32 +180,6 @@ vk_meta_create_sampler(struct vk_device *device,
const void *key_data, size_t key_size,
VkSampler *sampler_out);
-struct vk_meta_object_list {
- struct util_dynarray arr;
-};
-
-void vk_meta_object_list_init(struct vk_meta_object_list *mol);
-void vk_meta_object_list_reset(struct vk_device *device,
- struct vk_meta_object_list *mol);
-void vk_meta_object_list_finish(struct vk_device *device,
- struct vk_meta_object_list *mol);
-
-static inline void
-vk_meta_object_list_add_obj(struct vk_meta_object_list *mol,
- struct vk_object_base *obj)
-{
- util_dynarray_append(&mol->arr, struct vk_object_base *, obj);
-}
-
-static inline void
-vk_meta_object_list_add_handle(struct vk_meta_object_list *mol,
- VkObjectType obj_type,
- uint64_t handle)
-{
- vk_meta_object_list_add_obj(mol,
- vk_object_base_from_u64_handle(handle, obj_type));
-}
-
VkResult vk_meta_create_buffer(struct vk_command_buffer *cmd,
struct vk_meta_device *meta,
const VkBufferCreateInfo *info,