From 52ce81657d4ac608ecf72fe78da16475aecc45e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 11 Nov 2021 09:28:25 +0100 Subject: [PATCH] backend/native: Only disable dmabuf screen cast when not hw accelerated We now only enable DMA buffer based PipeWire screen casting if a format/modifier has been negotiated. This practically means a consumer is aware about what is needed, and we should not try to predict that it uses the DMA buffer the right way (i.e. not mmap:ing directly). However, in case we're not hardware accelerated, we never want to attempt to use DMA buffer screen sharing, as we want to avoid compositing into a DMA buffer on such hardware as doing so can be very slow. Part-of: --- data/org.gnome.mutter.gschema.xml.in | 8 +----- src/backends/meta-settings-private.h | 3 +-- src/backends/meta-settings.c | 2 -- src/backends/native/meta-backend-native.c | 33 +++-------------------- 4 files changed, 6 insertions(+), 40 deletions(-) diff --git a/data/org.gnome.mutter.gschema.xml.in b/data/org.gnome.mutter.gschema.xml.in index b54170eec..c014b749f 100644 --- a/data/org.gnome.mutter.gschema.xml.in +++ b/data/org.gnome.mutter.gschema.xml.in @@ -4,8 +4,7 @@ - - +