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 <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>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user