diff options
author | Simon Ser <contact@emersion.fr> | 2022-11-07 19:47:22 +0100 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-11-07 21:22:33 +0000 |
commit | 6c31f3b078560f32cbe4d2ca50bc0b44993a5955 (patch) | |
tree | cd27717100ffed4af435da413e8656a9d5e5a3e1 /include/render | |
parent | 388de59df31fbb90938c4874920de82a76d49606 (diff) |
render/vulkan: use wl_array for wlr_vk_shared_buffer.allocs
Avoids the need to open-code the realloc() logic.
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/vulkan.h | 5 |
1 files changed, 1 insertions, 4 deletions
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. |