From 12bd3478a66ed952b7bcdaa970dc0f62ebd7f796 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 5 Jul 2024 14:07:41 +0200 Subject: [PATCH] dmabuf --- src/protocols/LinuxDMABUF.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/protocols/LinuxDMABUF.cpp b/src/protocols/LinuxDMABUF.cpp index 994882c8..08faf643 100644 --- a/src/protocols/LinuxDMABUF.cpp +++ b/src/protocols/LinuxDMABUF.cpp @@ -291,7 +291,6 @@ CLinuxDMABUFFeedbackResource::CLinuxDMABUFFeedbackResource(SPsendTrancheTargetDevice(&deviceArr); - resource->sendTrancheFlags((zwpLinuxDmabufFeedbackV1TrancheFlags)0); wl_array indices; wl_array_init(&indices); @@ -381,7 +380,7 @@ bool CLinuxDMABUFResource::good() { void CLinuxDMABUFResource::sendMods() { for (auto& [fmt, mod] : PROTO::linuxDma->defaultFeedback->tranches) { if (resource->version() < 3) { - if (mod == DRM_FORMAT_MOD_INVALID) + if (mod == DRM_FORMAT_MOD_INVALID || mod == DRM_FORMAT_MOD_LINEAR) resource->sendFormat(fmt); continue; }