Commit 2d418e4f authored by Ivan Lipski's avatar Ivan Lipski Committed by Alex Deucher
Browse files

drm/amd/display: Allow DCN301 to clear update flags

[Why & How]
Not letting DCN301 to clear after surface/stream update results
in artifacts when switching between active overlay planes. The issue
is known and has been solved initially. See below:
(https://gitlab.freedesktop.org/drm/amd/-/issues/3441

)

Fixes: f354556e ("drm/amd/display: limit clear_update_flags t dcn32 and above")
Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarIvan Lipski <ivan.lipski@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2b6943df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5443,7 +5443,8 @@ bool dc_update_planes_and_stream(struct dc *dc,
	else
		ret = update_planes_and_stream_v2(dc, srf_updates,
			surface_count, stream, stream_update);
	if (ret && dc->ctx->dce_version >= DCN_VERSION_3_2)
	if (ret && (dc->ctx->dce_version >= DCN_VERSION_3_2 ||
		dc->ctx->dce_version == DCN_VERSION_3_01))
		clear_update_flags(srf_updates, surface_count, stream);

	return ret;