Skip to content

Commit

Permalink
drm/amd/display: fix init_adj offset for cositing in SPL
Browse files Browse the repository at this point in the history
[Why & How]
init_adj offset is applied when cosited not interstitial
Adjust cositing offset in SPL

Reviewed-by: Jun Lei <jun.lei@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Samson Tam authored and Alex Deucher committed Jan 6, 2025
1 parent c7c703e commit de5d7a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ static const struct dc_debug_options debug_defaults_drv = {
.enable_stall_recovery = true,
}
},
.force_cositing = CHROMA_COSITING_TOPLEFT + 1,
.force_cositing = CHROMA_COSITING_NONE + 1,
};

static struct dce_aux *dcn401_aux_engine_create(
Expand Down
11 changes: 6 additions & 5 deletions drivers/gpu/drm/amd/display/dc/spl/dc_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,20 +633,21 @@ static void spl_calculate_inits_and_viewports(struct spl_in *spl_in,

switch (spl_in->basic_in.cositing) {

case CHROMA_COSITING_LEFT:
init_adj_h = spl_fixpt_zero;
case CHROMA_COSITING_TOPLEFT:
init_adj_h = spl_fixpt_from_fraction(sign, 4);
init_adj_v = spl_fixpt_from_fraction(sign, 4);
break;
case CHROMA_COSITING_NONE:
case CHROMA_COSITING_LEFT:
init_adj_h = spl_fixpt_from_fraction(sign, 4);
init_adj_v = spl_fixpt_from_fraction(sign, 4);
init_adj_v = spl_fixpt_zero;
break;
case CHROMA_COSITING_TOPLEFT:
case CHROMA_COSITING_NONE:
default:
init_adj_h = spl_fixpt_zero;
init_adj_v = spl_fixpt_zero;
break;
}

}

spl_calculate_init_and_vp(
Expand Down

0 comments on commit de5d7a8

Please sign in to comment.