aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/core_types.h
diff options
context:
space:
mode:
authorJinZe.Xu <JinZe.Xu@amd.com>2020-08-13 16:59:24 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-09-15 17:52:40 -0400
commit498563cf9ca00dc4ee389cf2729dae81417a144f (patch)
tree228d6b1730cdc80fd95e8437efa29b0b6ab7043c /drivers/gpu/drm/amd/display/dc/inc/core_types.h
parentdrm/amd/display: Fixed Intermittent blue screen on OLED panel (diff)
downloadlinux-dev-498563cf9ca00dc4ee389cf2729dae81417a144f.tar.xz
linux-dev-498563cf9ca00dc4ee389cf2729dae81417a144f.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/core_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/core_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
index 329395ee7461..cc5f053ef5a3 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
@@ -300,6 +300,7 @@ union pipe_update_flags {
uint32_t gamut_remap : 1;
uint32_t scaler : 1;
uint32_t viewport : 1;
+ uint32_t plane_changed : 1;
} bits;
uint32_t raw;
};