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: I5358d60634070bdb26059056db884ad4161c073e Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
This commit is contained in:

committato da
Gerrit - the friendly Code Review server

parent
707ce010fe
commit
b121756b5d
@@ -309,6 +309,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 ||
|
||||
@@ -360,6 +362,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;
|
||||
}
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user