diff options
| author | Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> | 2020-05-21 12:32:45 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2020-07-01 01:59:20 -0400 |
| commit | ca8e2084e54b0c81638d94dfcaae84accb05869d (patch) | |
| tree | 334d547343201455e30189d56a74a277e186d8fa /tools/perf/scripts/python/bin | |
| parent | drm/amd/display: Move call to disable DPG (diff) | |
| download | linux-ca8e2084e54b0c81638d94dfcaae84accb05869d.tar.gz linux-ca8e2084e54b0c81638d94dfcaae84accb05869d.zip | |
drm/amd/display: Use u16 for drm_bpp in DSC calculations
[Why]
DSC calculations fail because the u16 bits_per_pixel from
the DRM struct is being casted to the u8 drm_bpp parameters
and locals. Integer wraparound is happening because this
value is greater than 255.
[How]
Use u16 to match what's in the structure instead of u8.
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
