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

@ -86,6 +86,10 @@ struct wlr_dmabuf_v1_buffer *wlr_dmabuf_v1_buffer_from_buffer_resource(
static const struct wlr_buffer_impl buffer_impl;
bool wlr_dmabuf_v1_buffer_is_buffer(struct wlr_buffer *buffer) {
return buffer->impl == &buffer_impl;
}
static struct wlr_dmabuf_v1_buffer *dmabuf_v1_buffer_from_buffer(
struct wlr_buffer *buffer) {
assert(buffer->impl == &buffer_impl);