drm/amd/display: Fix DCN32 DSC delay calculation
authorGeorge Shen <george.shen@amd.com>
Fri, 7 Oct 2022 16:43:26 +0000 (12:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Nov 2022 15:47:50 +0000 (11:47 -0400)
commit86975c34b6e2ce85b5b03f3b0a83333c97890ad7
tree176055af2e985469797a9a8c385e7e480d72fb61
parentcf472dbdd7204e1aaaf587df067e8e986616788b
drm/amd/display: Fix DCN32 DSC delay calculation

[Why]
DCN32 DSC delay calculation had an unintentional integer division,
resulting in a mismatch against the DML spreadsheet.

[How]
Cast numerator to double before performing the division.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c