diff options
author | Marijn Suijten <[email protected]> | 2022-10-26 20:28:21 +0200 |
---|---|---|
committer | Dmitry Baryshkov <[email protected]> | 2022-11-04 17:39:41 +0300 |
commit | d2c277c61986942e99680cb67ce26423d0f42f11 (patch) | |
tree | 308dfbf1ffce32ff9b5ac1e600f4059b9e9dc28f /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | c3a1aabce2d4087255de90100c3dad492e7d925c (diff) |
drm/msm/dsi: Account for DSC's bits_per_pixel having 4 fractional bits
drm_dsc_config's bits_per_pixel field holds a fractional value with 4
bits, which all panel drivers should adhere to for
drm_dsc_pps_payload_pack() to generate a valid payload. All code in the
DSI driver here seems to assume that this field doesn't contain any
fractional bits, hence resulting in the wrong values being computed.
Since none of the calculations leave any room for fractional bits or
seem to indicate any possible area of support, disallow such values
altogether. calculate_rc_params() in intel_vdsc.c performs an identical
bitshift to get at this integer value.
Fixes: b9080324d6ca ("drm/msm/dsi: add support for dsc data")
Reviewed-by: Abhinav Kumar <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Marijn Suijten <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/508938/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions