mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
backend/drm: Report ZERO_COPY hint when direct scanning a client dmabuf.
Since wlr_client_buffer is gone, we are now dealing with client dmabufs directly.
This commit is contained in:
parent
ba8230b00a
commit
45ad3d47ad
3 changed files with 13 additions and 1 deletions
|
|
@ -34,6 +34,12 @@ struct wlr_dmabuf_v1_buffer {
|
|||
*/
|
||||
bool wlr_dmabuf_v1_resource_is_buffer(struct wl_resource *buffer_resource);
|
||||
|
||||
/**
|
||||
* Returns true if the given buffer was created via the linux-dmabuf
|
||||
* buffer protocol, false otherwise
|
||||
*/
|
||||
bool wlr_dmabuf_v1_buffer_is_buffer(struct wlr_buffer *buffer);
|
||||
|
||||
/**
|
||||
* Returns the struct wlr_dmabuf_buffer if the given resource was created
|
||||
* via the linux-dmabuf buffer protocol.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue