mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-22 06:47:12 -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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue