From: Jun Lei Date: Wed, 16 Dec 2020 17:56:38 +0000 (-0500) Subject: drm/amd/display: Increase precision for bpp in DSC calculations X-Git-Tag: v5.13-rc1~123^2~12^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86ca3cbe5c9ca8e7d47424c98fc7b49b34b67d96;p=thirdparty%2Flinux.git drm/amd/display: Increase precision for bpp in DSC calculations [Why?] Many DSC variables and related functions use whole bits for bpp. [How?] Change variables and related functions to use 16ths of a bit for bpp. Tested-by: Daniel Wheeler Signed-off-by: Dillon Varone Signed-off-by: Jun Lei Reviewed-by: Wenjing Liu Acked-by: Solomon Chiu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h index 48d3ed97ead9b..bcec019efa6f0 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h +++ b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h @@ -770,6 +770,7 @@ struct dc_crtc_timing { #endif struct dc_crtc_timing_flags flags; + uint32_t dsc_fixed_bits_per_pixel_x16; /* DSC target bitrate in 1/16 of bpp (e.g. 128 -> 8bpp) */ struct dc_dsc_config dsc_cfg; };