Merge branch 'gbm-flags' into 'master'

Draft: render/allocator/gbm: add bo_flags arg to create function

See merge request wlroots/wlroots!4472
This commit is contained in:
Simon Ser 2024-08-18 19:27:22 +00:00
commit ef3cf54af4
4 changed files with 22 additions and 7 deletions

View file

@ -20,6 +20,7 @@ struct wlr_gbm_allocator {
int fd;
struct gbm_device *gbm_device;
uint32_t bo_flags;
struct wl_list buffers; // wlr_gbm_buffer.link
};
@ -27,8 +28,10 @@ struct wlr_gbm_allocator {
/**
* Creates a new GBM allocator from a DRM FD.
*
* bo_flags is a bitfield of enum gbm_bo_flags.
*
* Takes ownership over the FD.
*/
struct wlr_allocator *wlr_gbm_allocator_create(int drm_fd);
struct wlr_allocator *wlr_gbm_allocator_create_with_drm_fd(int drm_fd, uint32_t bo_flags);
#endif