forge
Explore
Log in

Don't you dare go Hollow

Remove deprecated keep-max-bpc-unchanged debug flag

Browse files at this commit

f9f43d826ab4014a7c302be28d7da33e12f5be37Ivan MolodetskikhParent: 3d49db3
It's been a stub for two releases now.
docs/wiki/Configuration:-Debug-Options.mdmodified+0 -21
@@ -324,27 +324,6 @@ debug {
324 }324 }
325 ```325 ```
326 326
327-### `keep-max-bpc-unchanged`
328-
329-<sup>Since: 25.08</sup>
330-
331-When connecting monitors, niri sets their max bpc to 8 in order to reduce display bandwidth and to potentially allow more monitors to be connected at once.
332-Restricting bpc to 8 is not a problem since we don't support HDR or color management yet and can't really make use of higher bpc.
333-
334-Apparently, setting max bpc to 8 breaks some displays driven by AMDGPU.
335-If this happens to you, set this debug flag, which will prevent niri from changing max bpc.
336-AMDGPU bug report: https://gitlab.freedesktop.org/drm/amd/-/issues/4487.
337-
338-<sup>Since: 25.11</sup>
339-This setting is deprecated and does nothing: niri no longer sets max bpc.
340-The old niri behavior with this setting enabled matches the new behavior.
341-
342-```kdl
343-debug {
344- keep-max-bpc-unchanged
345-}
346-```
347-
348 ### Key Bindings327 ### Key Bindings
349 328
350 These are not debug options, but rather key bindings.329 These are not debug options, but rather key bindings.
niri-config/src/debug.rsmodified+0 -4
@@ -10,7 +10,6 @@ pub struct Debug {
10 pub enable_overlay_planes: bool,10 pub enable_overlay_planes: bool,
11 pub disable_cursor_plane: bool,11 pub disable_cursor_plane: bool,
12 pub disable_direct_scanout: bool,12 pub disable_direct_scanout: bool,
13- pub keep_max_bpc_unchanged: bool,
14 pub restrict_primary_scanout_to_matching_format: bool,13 pub restrict_primary_scanout_to_matching_format: bool,
15 pub force_disable_connectors_on_resume: bool,14 pub force_disable_connectors_on_resume: bool,
16 pub render_drm_device: Option<PathBuf>,15 pub render_drm_device: Option<PathBuf>,
@@ -42,8 +41,6 @@ pub struct DebugPart {
42 #[knuffel(child)]41 #[knuffel(child)]
43 pub disable_direct_scanout: Option<Flag>,42 pub disable_direct_scanout: Option<Flag>,
44 #[knuffel(child)]43 #[knuffel(child)]
45- pub keep_max_bpc_unchanged: Option<Flag>,
46- #[knuffel(child)]
47 pub restrict_primary_scanout_to_matching_format: Option<Flag>,44 pub restrict_primary_scanout_to_matching_format: Option<Flag>,
48 #[knuffel(child)]45 #[knuffel(child)]
49 pub force_disable_connectors_on_resume: Option<Flag>,46 pub force_disable_connectors_on_resume: Option<Flag>,
@@ -82,7 +79,6 @@ impl MergeWith<DebugPart> for Debug {
82 enable_overlay_planes,79 enable_overlay_planes,
83 disable_cursor_plane,80 disable_cursor_plane,
84 disable_direct_scanout,81 disable_direct_scanout,
85- keep_max_bpc_unchanged,
86 restrict_primary_scanout_to_matching_format,82 restrict_primary_scanout_to_matching_format,
87 force_disable_connectors_on_resume,83 force_disable_connectors_on_resume,
88 force_pipewire_invalid_modifier,84 force_pipewire_invalid_modifier,
niri-config/src/lib.rsmodified+0 -1
@@ -2252,7 +2252,6 @@ mod tests {
2252 enable_overlay_planes: false,2252 enable_overlay_planes: false,
2253 disable_cursor_plane: false,2253 disable_cursor_plane: false,
2254 disable_direct_scanout: false,2254 disable_direct_scanout: false,
2255- keep_max_bpc_unchanged: false,
2256 restrict_primary_scanout_to_matching_format: false,2255 restrict_primary_scanout_to_matching_format: false,
2257 force_disable_connectors_on_resume: false,2256 force_disable_connectors_on_resume: false,
2258 render_drm_device: Some(2257 render_drm_device: Some(