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:
Alexander Orzechowski 2022-06-24 23:31:20 -04:00
parent ba8230b00a
commit 45ad3d47ad
3 changed files with 13 additions and 1 deletions

View file

@ -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.