disp: msm: use upstream dsc config data
This change enforces dp, dsi and the sde drivers to use the drm framework defined dsc_config data structure. As a part of this, it introduces the sde_dsc_helper API to configure the dsc params and creating a PPS command. Earlier each driver implemented it's private versions leading to duplication of code. Additionaly the helper api supports DSC spec 1.2 422 and 420 mode. Change-Id: I25933fab08cdabbc6787079926885d1a78945e97 Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
这个提交包含在:
@@ -3492,6 +3492,7 @@ static void _sde_encoder_setup_dither(struct sde_encoder_phys *phys)
|
||||
struct msm_display_dsc_info *dsc = NULL;
|
||||
struct sde_encoder_virt *sde_enc;
|
||||
struct sde_hw_pingpong *hw_pp;
|
||||
u16 bpp;
|
||||
|
||||
if (!phys || !phys->connector || !phys->hw_pp ||
|
||||
!phys->hw_pp->ops.setup_dither || !phys->parent)
|
||||
@@ -3506,7 +3507,8 @@ static void _sde_encoder_setup_dither(struct sde_encoder_phys *phys)
|
||||
sde_enc = to_sde_encoder_virt(drm_enc);
|
||||
dsc = &sde_enc->mode_info.comp_info.dsc_info;
|
||||
/* disable dither for 10 bpp or 10bpc dsc config */
|
||||
if (dsc->bpp == 10 || dsc->bpc == 10) {
|
||||
bpp = DSC_BPP(dsc->config);
|
||||
if (bpp == 10 || dsc->config.bits_per_component == 10) {
|
||||
phys->hw_pp->ops.setup_dither(phys->hw_pp, NULL, 0);
|
||||
return;
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户