Re: [Freedreno] [PATCH 1/5] drm/msm/dsi: Remove useless math in DSC calculation

2022-10-04 Thread Marijn Suijten
On 2022-10-04 07:33:49, Abhinav Kumar wrote: > > > On 10/1/2022 12:08 PM, Marijn Suijten wrote: > > Multiplying a value by 2 and adding 1 to it always results in a value > > that is uneven, and that 1 gets truncated immediately when performing > > integer division by 2 again. There is no "roundi

Re: [Freedreno] [PATCH 1/5] drm/msm/dsi: Remove useless math in DSC calculation

2022-10-04 Thread Abhinav Kumar
On 10/1/2022 12:08 PM, Marijn Suijten wrote: Multiplying a value by 2 and adding 1 to it always results in a value that is uneven, and that 1 gets truncated immediately when performing integer division by 2 again. There is no "rounding" possible here. Fixes: b9080324d6ca ("drm/msm/dsi: add s

Re: [Freedreno] [PATCH 1/5] drm/msm/dsi: Remove useless math in DSC calculation

2022-10-03 Thread Bjorn Andersson
On Sat, Oct 01, 2022 at 09:08:03PM +0200, Marijn Suijten wrote: > Multiplying a value by 2 and adding 1 to it always results in a value > that is uneven, and that 1 gets truncated immediately when performing > integer division by 2 again. There is no "rounding" possible here. > > Fixes: b9080324d

Re: [Freedreno] [PATCH 1/5] drm/msm/dsi: Remove useless math in DSC calculation

2022-10-01 Thread Konrad Dybcio
On 1.10.2022 21:08, Marijn Suijten wrote: > Multiplying a value by 2 and adding 1 to it always results in a value > that is uneven, and that 1 gets truncated immediately when performing > integer division by 2 again. There is no "rounding" possible here. > > Fixes: b9080324d6ca ("drm/msm/dsi:

[Freedreno] [PATCH 1/5] drm/msm/dsi: Remove useless math in DSC calculation

2022-10-01 Thread Marijn Suijten
Multiplying a value by 2 and adding 1 to it always results in a value that is uneven, and that 1 gets truncated immediately when performing integer division by 2 again. There is no "rounding" possible here. Fixes: b9080324d6ca ("drm/msm/dsi: add support for dsc data") Signed-off-by: Marijn Suijte