mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
render/allocator/gbm: add bo_flags arg to create function
This allows callers to opt out of SCANOUT, for instance.
This commit is contained in:
parent
bf75706555
commit
a245201dad
3 changed files with 10 additions and 4 deletions
|
|
@ -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_with_drm_fd(int drm_fd);
|
||||
struct wlr_allocator *wlr_gbm_allocator_create_with_drm_fd(int drm_fd, uint32_t bo_flags);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue