aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-07 19:47:22 +0100
committerKirill Primak <vyivel@eclair.cafe>2022-11-07 21:22:33 +0000
commit6c31f3b078560f32cbe4d2ca50bc0b44993a5955 (patch)
treecd27717100ffed4af435da413e8656a9d5e5a3e1 /include
parent388de59df31fbb90938c4874920de82a76d49606 (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')
-rw-r--r--include/render/vulkan.h5
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.