forge
Explore
Log in

Don't you dare go Hollow

Filter out the Intel CCS modifiers

Browse files at this commit

e261b641ed62474676c90aaa4e734cdd1ecde703Ivan MolodetskikhParent: dc1d2b7
src/backend/tty.rsmodified+22 -0
@@ -861,6 +861,28 @@ impl Tty {
861 let egl_context = renderer.as_ref().egl_context();861 let egl_context = renderer.as_ref().egl_context();
862 let render_formats = egl_context.dmabuf_render_formats();862 let render_formats = egl_context.dmabuf_render_formats();
863 863
864+ // Filter out the CCS modifiers as they have increased bandwidth, causing some monitor
865+ // configurations to stop working.
866+ let mut render_formats = render_formats.clone();
867+ render_formats.retain(|format| {
868+ !matches!(
869+ format.modifier,
870+ Modifier::I915_y_tiled_ccs
871+ // I915_FORMAT_MOD_Yf_TILED_CCS
872+ | Modifier::Unrecognized(0x100000000000005)
873+ | Modifier::I915_y_tiled_gen12_rc_ccs
874+ | Modifier::I915_y_tiled_gen12_mc_ccs
875+ // I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC
876+ | Modifier::Unrecognized(0x100000000000008)
877+ // I915_FORMAT_MOD_4_TILED_DG2_RC_CCS
878+ | Modifier::Unrecognized(0x10000000000000a)
879+ // I915_FORMAT_MOD_4_TILED_DG2_MC_CCS
880+ | Modifier::Unrecognized(0x10000000000000b)
881+ // I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC
882+ | Modifier::Unrecognized(0x10000000000000c)
883+ )
884+ });
885+
864 // Create the compositor.886 // Create the compositor.
865 let mut compositor = DrmCompositor::new(887 let mut compositor = DrmCompositor::new(
866 OutputModeSource::Auto(output.clone()),888 OutputModeSource::Auto(output.clone()),