[PATCH v3 6/6] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1
Jun Nie
jun.nie at linaro.org
Mon Apr 8 09:59:19 UTC 2024
Dmitry Baryshkov <dmitry.baryshkov at linaro.org> 于2024年4月3日周三 18:51写道:
>
> On Wed, 3 Apr 2024 at 12:11, Jun Nie <jun.nie at linaro.org> wrote:
> >
> > From: Jonathan Marek <jonathan at marek.ca>
> >
> > Support slice_per_pkt in msm driver.
> >
> > Note that the removed "pkt_per_line = slice_per_intf * slice_per_pkt"
> > comment is incorrect.
> >
> > Also trim the code to simplify the dsc reference.
> >
> > Signed-off-by: Jonathan Marek <jonathan at marek.ca>
> > Signed-off-by: Jun Nie <jun.nie at linaro.org>
> > ---
> > drivers/gpu/drm/msm/dsi/dsi_host.c | 35 ++++++++++++++---------------------
> > 1 file changed, 14 insertions(+), 21 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c
> > index b0507a42ee6a..0c6f40dbd25c 100644
> > --- a/drivers/gpu/drm/msm/dsi/dsi_host.c
> > +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
> > @@ -866,17 +866,10 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod
> > slice_per_intf = msm_dsc_get_slices_per_intf(dsc, hdisplay);
> >
> > total_bytes_per_intf = dsc->slice_chunk_size * slice_per_intf;
> > - bytes_per_pkt = dsc->slice_chunk_size; /* * slice_per_pkt; */
> > -
> > + bytes_per_pkt = dsc->slice_chunk_size * dsc->slice_per_pkt;
>
> Please don't mix cleanup and functional changes.
OK. Will fix this.
More information about the dri-devel
mailing list