aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-07 11:25:10 +0100
committerSimon Ser <contact@emersion.fr>2023-02-07 11:25:10 +0100
commitc6ecbf09b527dabb37e814d2207249ee95f5d80f (patch)
tree9138f475eab8ea017735d88c2071743416c22eb3
parent8c5713bd7a37e3b32ee3df0df0ddc59f3d32efd2 (diff)
linux-dmabuf-v1: fix missing SCANOUT flag
options->scanout_primary_output indicates an output on which scanout is desirable. Set the missing SCANOUT flag. Fixes: 0c966f102c1d ("linux-dmabuf-v1: add wlr_linux_dmabuf_feedback_v1_init_with_options()")
-rw-r--r--types/wlr_linux_dmabuf_v1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_linux_dmabuf_v1.c b/types/wlr_linux_dmabuf_v1.c
index 85e590eb..0e663665 100644
--- a/types/wlr_linux_dmabuf_v1.c
+++ b/types/wlr_linux_dmabuf_v1.c
@@ -1109,6 +1109,7 @@ bool wlr_linux_dmabuf_feedback_v1_init_with_options(struct wlr_linux_dmabuf_feed
}
tranche->target_device = backend_dev;
+ tranche->flags = ZWP_LINUX_DMABUF_FEEDBACK_V1_TRANCHE_FLAGS_SCANOUT;
if (!wlr_drm_format_set_intersect(&tranche->formats, scanout_formats, renderer_formats)) {
wlr_log(WLR_ERROR, "Failed to intersect renderer and scanout formats");
goto error;