Commit 3aa0cadd authored by Duke Du's avatar Duke Du Committed by Alex Deucher

drm/amd/display: Update the register GRPH_SWAP_CNTL if surface pixel format changed.

Signed-off-by: default avatarDuke Du <Duke.Du@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a27267e0
......@@ -1066,6 +1066,9 @@ static enum surface_update_type get_plane_info_update_type(const struct dc_surfa
if (u->plane_info->rotation != u->surface->rotation)
update_flags->bits.rotation_change = 1;
if (u->plane_info->format != u->surface->format)
update_flags->bits.pixel_format_change = 1;
if (u->plane_info->stereo_format != u->surface->stereo_format)
update_flags->bits.stereo_format_change = 1;
......
......@@ -400,6 +400,7 @@ union surface_update_flags {
uint32_t in_transfer_func_change:1;
uint32_t input_csc_change:1;
uint32_t output_tf_change:1;
uint32_t pixel_format_change:1;
/* Full updates */
uint32_t new_plane:1;
......
......@@ -1725,6 +1725,7 @@ static void update_dchubp_dpp(
}
if (plane_state->update_flags.bits.full_update ||
plane_state->update_flags.bits.pixel_format_change ||
plane_state->update_flags.bits.horizontal_mirror_change ||
plane_state->update_flags.bits.rotation_change ||
plane_state->update_flags.bits.swizzle_change ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment