From 3d5de921cd79cd951cc09bf47b908163aa56b276 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 6 Jan 2024 09:14:48 +0400 Subject: Add render-drm-device debug config option --- src/config.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 8127d9bb..b6397a34 100644 --- a/src/config.rs +++ b/src/config.rs @@ -381,6 +381,8 @@ pub struct DebugConfig { pub enable_overlay_planes: bool, #[knuffel(child)] pub disable_cursor_plane: bool, + #[knuffel(child, unwrap(argument))] + pub render_drm_device: Option, } impl Default for DebugConfig { @@ -392,6 +394,7 @@ impl Default for DebugConfig { enable_color_transformations_capability: false, enable_overlay_planes: false, disable_cursor_plane: false, + render_drm_device: None, } } } @@ -655,6 +658,7 @@ mod tests { debug { animation-slowdown 2.0 + render-drm-device "/dev/dri/renderD129" } "#, Config { @@ -791,6 +795,7 @@ mod tests { ]), debug: DebugConfig { animation_slowdown: 2., + render_drm_device: Some(PathBuf::from("/dev/dri/renderD129")), ..Default::default() }, }, -- cgit