disp: msm: sde: fix issues with dsc config
This change fixes issues which causes corruption for dual dsi dsc panel. It fixes the number of slices configured on dsc hw block and handles deriving correct picture width from mode timings. Additionally it fixes the core max buffer sizes used by the hw block. Change-Id: Iec0ef80528425ffcb5f29d469bd181eb7040de16 Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
This commit is contained in:
@@ -1663,15 +1663,15 @@ static void adjust_timing_by_ctrl_count(const struct dsi_display *display,
|
||||
mode->timing.h_skew /= sublinks_count;
|
||||
mode->pixel_clk_khz /= sublinks_count;
|
||||
} else {
|
||||
if (mode->priv_info->dsc_enabled)
|
||||
mode->priv_info->dsc.config.pic_width =
|
||||
mode->timing.h_active;
|
||||
mode->timing.h_active /= display->ctrl_count;
|
||||
mode->timing.h_front_porch /= display->ctrl_count;
|
||||
mode->timing.h_sync_width /= display->ctrl_count;
|
||||
mode->timing.h_back_porch /= display->ctrl_count;
|
||||
mode->timing.h_skew /= display->ctrl_count;
|
||||
mode->pixel_clk_khz /= display->ctrl_count;
|
||||
if (mode->priv_info->dsc_enabled)
|
||||
mode->priv_info->dsc.config.pic_width *=
|
||||
display->ctrl_count;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user