tty: Remove explicit opaque color formats
Browse files at this commitebd94a7e7ae435d066684a72406e0447d46d6bc9Parent: 0add05d1 changed file +3 -4
- src/backend/tty.rs +3 -4
src/backend/tty.rsmodified+3 -4
| @@ -72,11 +72,10 @@ use crate::utils::{get_monotonic_time, is_laptop_panel, logical_output, PanelOri | |||
| 72 | 72 | ||
| 73 | // specific 10-bit formats for multigpu setup, | 73 | // specific 10-bit formats for multigpu setup, |
| 74 | // i.e. copying from rendering Nvidia dGPU to target iGPU. | 74 | // i.e. copying from rendering Nvidia dGPU to target iGPU. |
| 75 | -const SUPPORTED_COLOR_FORMATS: [Fourcc; 6] = [ | 75 | +// |
| 76 | - Fourcc::Xbgr2101010, | 76 | +// Smithay should fall back to Xrgb/Xbgr automatically if needed. |
| 77 | +const SUPPORTED_COLOR_FORMATS: [Fourcc; 3] = [ | ||
| 77 | Fourcc::Abgr2101010, | 78 | Fourcc::Abgr2101010, |
| 78 | - Fourcc::Xrgb8888, | ||
| 79 | - Fourcc::Xbgr8888, | ||
| 80 | Fourcc::Argb8888, | 79 | Fourcc::Argb8888, |
| 81 | Fourcc::Abgr8888, | 80 | Fourcc::Abgr8888, |
| 82 | ]; | 81 | ]; |