diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-06 09:14:48 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-06 09:14:48 +0400 |
| commit | 3d5de921cd79cd951cc09bf47b908163aa56b276 (patch) | |
| tree | 170e1621a8f78204ea546facc288d52621efe33b /src/config.rs | |
| parent | 8703feedee755353269306c65cdb78384dcc97e8 (diff) | |
| download | niri-3d5de921cd79cd951cc09bf47b908163aa56b276.tar.gz niri-3d5de921cd79cd951cc09bf47b908163aa56b276.tar.bz2 niri-3d5de921cd79cd951cc09bf47b908163aa56b276.zip | |
Add render-drm-device debug config option
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<PathBuf>, } 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() }, }, |
