diff options
author | Jani Nikula <[email protected]> | 2023-04-06 16:46:14 +0300 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2023-04-24 22:40:40 +0300 |
commit | 13525645e2246ebc8a21bd656248d86022a6ee8f (patch) | |
tree | b58f43a113d5b2996d570c931e5883b7c5ab7e60 /lib/mpi/mpiutil.c | |
parent | 1b617bc93178912fa36f87a957c15d1f1708c299 (diff) |
drm/dsc: fix drm_edp_dsc_sink_output_bpp() DPCD high byte usage
The operator precedence between << and & is wrong, leading to the high
byte being completely ignored. For example, with the 6.4 format, 32
becomes 0 and 24 becomes 8. Fix it, and remove the slightly confusing
and unnecessary DP_DSC_MAX_BITS_PER_PIXEL_HI_SHIFT macro while at it.
Fixes: 0575650077ea ("drm/dp: DRM DP helper/macros to get DP sink DSC parameters")
Cc: Stanislav Lisovskiy <[email protected]>
Cc: Manasi Navare <[email protected]>
Cc: Anusha Srivatsa <[email protected]>
Cc: <[email protected]> # v5.0+
Signed-off-by: Jani Nikula <[email protected]>
Reviewed-by: Ankit Nautiyal <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions