We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 170ffca commit 1e81961Copy full SHA for 1e81961
drivers/gpu/drm/msm/dsi/dsi_host.c
@@ -1807,9 +1807,7 @@ static int dsi_populate_dsc_params(struct drm_dsc_config *dsc)
1807
* params are calculated
1808
*/
1809
groups_per_line = DIV_ROUND_UP(dsc->slice_width, 3);
1810
- dsc->slice_chunk_size = dsc->slice_width * dsc->bits_per_pixel / 8;
1811
- if ((dsc->slice_width * dsc->bits_per_pixel) % 8)
1812
- dsc->slice_chunk_size++;
+ dsc->slice_chunk_size = DIV_ROUND_UP(dsc->slice_width * dsc->bits_per_pixel, 8);
1813
1814
/* rbs-min */
1815
min_rate_buffer_size = dsc->rc_model_size - dsc->initial_offset +
0 commit comments