]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Increase precision for bpp in DSC calculations
authorJun Lei <jun.lei@amd.com>
Wed, 16 Dec 2020 17:56:38 +0000 (12:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:32:27 +0000 (23:32 -0400)
[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 <daniel.wheeler@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Jun Lei <jun.lei@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_hw_types.h

index 48d3ed97ead9bc950a78d932bb02fba7501f32cf..bcec019efa6f02fdc49dd665fc98b917a51d854f 100644 (file)
@@ -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;
 };