aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/render/gbm_allocator.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/render/gbm_allocator.h b/include/render/gbm_allocator.h
index d4cd233e..d8121328 100644
--- a/include/render/gbm_allocator.h
+++ b/include/render/gbm_allocator.h
@@ -8,7 +8,9 @@
struct wlr_gbm_buffer {
struct wlr_buffer base;
- struct gbm_bo *gbm_bo;
+ struct wl_list link; // wlr_gbm_allocator.buffers
+
+ struct gbm_bo *gbm_bo; // NULL if the gbm_device has been destroyed
struct wlr_dmabuf_attributes dmabuf;
};
@@ -17,6 +19,8 @@ struct wlr_gbm_allocator {
int fd;
struct gbm_device *gbm_device;
+
+ struct wl_list buffers; // wlr_gbm_buffer.link
};
/**