From 6c31f3b078560f32cbe4d2ca50bc0b44993a5955 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 7 Nov 2022 19:47:22 +0100 Subject: render/vulkan: use wl_array for wlr_vk_shared_buffer.allocs Avoids the need to open-code the realloc() logic. --- include/render/vulkan.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include') diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 104e65a5..74df5a75 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -275,10 +275,7 @@ struct wlr_vk_shared_buffer { VkBuffer buffer; VkDeviceMemory memory; VkDeviceSize buf_size; - - size_t allocs_size; - size_t allocs_capacity; - struct wlr_vk_allocation *allocs; + struct wl_array allocs; // struct wlr_vk_allocation }; // Suballocated range on a buffer. -- cgit v1.2.3