]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Detect plane change when detect pipe change.
authorJinZe.Xu <JinZe.Xu@amd.com>
Thu, 13 Aug 2020 08:59:24 +0000 (16:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:40 +0000 (17:52 -0400)
commit498563cf9ca00dc4ee389cf2729dae81417a144f
tree228d6b1730cdc80fd95e8437efa29b0b6ab7043c
parenta861736dae644a0d7abbca0c638ae6aad28feeb8
drm/amd/display: Detect plane change when detect pipe change.

[Why]
If plane has changed, dcn20_detect_pipe_changes doesn't update dc_plane_state->update_flags, and the following dcn20_program_pipe can't reprogram hubp correctly.

[How]
Add a new flags bit "plane_changed" in pipe_ctx->update_flags.If old plane isn’t identical to new plane, this bit will be set and guide “dcn20_program_pipe” to programing HUBP correctly.

Signed-off-by: JinZe.Xu <JinZe.Xu@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h