From c6ecbf09b527dabb37e814d2207249ee95f5d80f Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Tue, 7 Feb 2023 11:25:10 +0100
Subject: 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()")
---
 types/wlr_linux_dmabuf_v1.c | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
cgit v1.2.3