disp: msm: sde: adjust DSC encoders to support all 4LM topologies
Add support for all 4LM topologies in new DCE encoder framework. This change also aligns with the new way of checking topology information. Change-Id: I20785c96569fd07cbd8016d244a7e4c929bfa071 Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
This commit is contained in:
@@ -295,6 +295,8 @@ int sde_dsc_populate_dsc_private_params(struct msm_display_dsc_info *dsc_info,
|
||||
int slice_per_pkt, slice_per_intf;
|
||||
int bytes_in_slice, total_bytes_per_intf;
|
||||
u16 bpp;
|
||||
u32 bytes_in_dsc_pair;
|
||||
u32 total_bytes_in_dsc_pair;
|
||||
|
||||
if (!dsc_info || !dsc_info->config.slice_width ||
|
||||
!dsc_info->config.slice_height ||
|
||||
@@ -346,6 +348,16 @@ int sde_dsc_populate_dsc_private_params(struct msm_display_dsc_info *dsc_info,
|
||||
dsc_info->bytes_per_pkt = bytes_in_slice * slice_per_pkt;
|
||||
dsc_info->pkt_per_line = slice_per_intf / slice_per_pkt;
|
||||
|
||||
bytes_in_dsc_pair = DIV_ROUND_UP(bytes_in_slice * 2, 3);
|
||||
if (bytes_in_dsc_pair % 8) {
|
||||
dsc_info->dsc_4hsmerge_padding = 8 - (bytes_in_dsc_pair % 8);
|
||||
total_bytes_in_dsc_pair = bytes_in_dsc_pair +
|
||||
dsc_info->dsc_4hsmerge_padding;
|
||||
if (total_bytes_in_dsc_pair % 16)
|
||||
dsc_info->dsc_4hsmerge_alignment = 16 -
|
||||
(total_bytes_in_dsc_pair % 16);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user