mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-06 04:06:11 -05:00
render/allocator/gbm: implement begin_data_ptr_access
Allows CPU access of the buffer. Can be useful for multi-GPU copies via CPU. Might be quite slow, and might fail for an arbitrary driver-specific reason, so not advertised in wlr_allocator.buffer_caps.
This commit is contained in:
parent
47bf87ade2
commit
de1bbbb4e2
2 changed files with 43 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ struct wlr_gbm_buffer {
|
|||
struct wl_list link; // wlr_gbm_allocator.buffers
|
||||
|
||||
struct gbm_bo *gbm_bo; // NULL if the gbm_device has been destroyed
|
||||
void *gbm_map_data; // NULL unless we have an active mapping
|
||||
struct wlr_dmabuf_attributes dmabuf;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue