From 7899b97d20073d4bd59072b26a1ef940229ba382 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 30 Sep 2022 15:50:18 +0200 Subject: render/vulkan: use addon for wlr_vk_render_buffer Avoids having to walk the list containing all of the render buffers. --- include/render/vulkan.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/render/vulkan.h b/include/render/vulkan.h index dbfe750f..1cbe00c1 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -9,6 +9,7 @@ #include #include #include +#include struct wlr_vk_descriptor_pool; @@ -132,6 +133,7 @@ struct wlr_vk_render_format_setup { // Renderer-internal represenation of an wlr_buffer imported for rendering. struct wlr_vk_render_buffer { struct wlr_buffer *wlr_buffer; + struct wlr_addon addon; struct wlr_vk_renderer *renderer; struct wlr_vk_render_format_setup *render_setup; struct wl_list link; // wlr_vk_renderer.buffers @@ -142,8 +144,6 @@ struct wlr_vk_render_buffer { uint32_t mem_count; VkDeviceMemory memories[WLR_DMABUF_MAX_PLANES]; bool transitioned; - - struct wl_listener buffer_destroy; }; // Vulkan wlr_renderer implementation on top of a wlr_vk_device. -- cgit v1.2.3