From 6d18e86b064299228905f8f215550735aa95f3d8 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 27 Oct 2025 14:52:22 +0000 Subject: [PATCH] backend-drm: Deprecate DRM VA-API recorder The DRM backend has had a VA-API recorder for a while, which pushes the frames from every redraw into libva for compositor-side recording. Implementing this manually in the compositor, and configuring it, is kind of pain. We now have the PipeWire backend which can do screencasting in a much more flexible way without having to push everything into the compositor itself, and without having to hardcode support for one particular encoder framework. Deprecate this module with the intention of removing it in the Weston 16 cycle, along with screenshare (for similar reasons). Signed-off-by: Daniel Stone --- libweston/backend-drm/meson.build | 3 ++- meson_options.txt | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libweston/backend-drm/meson.build b/libweston/backend-drm/meson.build index 9d87be89f..620e9ad29 100644 --- a/libweston/backend-drm/meson.build +++ b/libweston/backend-drm/meson.build @@ -65,7 +65,8 @@ if get_option('renderer-vulkan') config_h.set('BUILD_DRM_GBM', '1') endif -if get_option('backend-drm-screencast-vaapi') +if get_option('deprecated-backend-drm-screencast-vaapi') + warning('deprecated-backend-drm-screencast-vaapi enabled. This option will be removed in future versions.') foreach name : [ 'libva', 'libva-drm' ] d = dependency(name, version: '>= 0.34.0', required: false) if not d.found() diff --git a/meson_options.txt b/meson_options.txt index 41eab349a..0ef9f0cf6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -9,10 +9,10 @@ option( description: 'Weston backend: DRM/KMS' ) option( - 'backend-drm-screencast-vaapi', + 'deprecated-backend-drm-screencast-vaapi', type: 'boolean', - value: true, - description: 'DRM/KMS backend support for VA-API screencasting' + value: false, + description: 'DEPRECATED: DRM/KMS backend support for VA-API screencasting' ) option( 'backend-headless',