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>
Wed, 2 Nov 2022 21:16:25 +0000 (17:16 -0400)
commitbad610c97c08eef3ed1fa769a8b08b94f95b451e
tree8830f790bee8eab1f31f703a6a42869ba6b97edb
parent8fe8ce896c1cc29d6bfebb3c7b3cc948f72cd32c
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