Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e008b0bc authored by Roman Li's avatar Roman Li Committed by Alex Deucher
Browse files

drm/amd/display: Add FBC on/off to front-end programming



- Fixing text mode for cases when VT-switch doesn't result
in timing change

Signed-off-by: default avatarRoman Li <Roman.Li@amd.com>
Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1049e39f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2554,6 +2554,15 @@ static void dce110_program_front_end_for_pipe(

	program_scaler(dc, pipe_ctx);

#ifdef ENABLE_FBC
	if (dc->fbc_compressor && old_pipe->stream) {
		if (plane_state->tiling_info.gfx8.array_mode == DC_ARRAY_LINEAR_GENERAL)
			dc->fbc_compressor->funcs->disable_fbc(dc->fbc_compressor);
		else
			enable_fbc(dc, dc->current_state);
	}
#endif

	mi->funcs->mem_input_program_surface_config(
			mi,
			plane_state->format,