aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-09-30 15:50:18 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-09-30 14:02:51 +0000
commit7899b97d20073d4bd59072b26a1ef940229ba382 (patch)
tree42497992a24e7c2dcd14e7ddebfc2bd78873b41a /include
parent651c876e79ffa7ec0f508a873d1fcf5a4d93b8cc (diff)
render/vulkan: use addon for wlr_vk_render_buffer
Avoids having to walk the list containing all of the render buffers.
Diffstat (limited to 'include')
-rw-r--r--include/render/vulkan.h4
1 files changed, 2 insertions, 2 deletions
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 <wlr/render/wlr_texture.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/render/interface.h>
+#include <wlr/util/addon.h>
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.