drm/amd/display: move FPU related code from dcn31 to dml/dcn31 folder
authorMelissa Wen <mwen@igalia.com>
Mon, 7 Mar 2022 15:47:59 +0000 (14:47 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Mar 2022 16:40:26 +0000 (12:40 -0400)
commit26f4712aedbdf4b9f5e3888a50a2a4b130ee4a9b
tree7d2df4223c9a376456c1ae57a35612ce23e1fbbc
parent1918a0455d360457b2fbcda889cff19876d01b9e
drm/amd/display: move FPU related code from dcn31 to dml/dcn31 folder

Creates FPU files in dml/dcn31 folder to centralize FPU operations
from 3.1x drivers and moves all FPU-associated code from dcn31 driver
to there. It includes the struct _vcs_dpi_ip_params_st and
_vcs_dpi_soc_bounding_box_st and functions:

- dcn31_calculate_wm_and_dlg_fp()
- dcn31_update_bw_bounding_box()

adding dc_assert_fp_enabled to them and drop DC_FP_START/END inside
functions that was moved to dml folder, as required.

Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn31/Makefile
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.h
drivers/gpu/drm/amd/display/dc/dml/Makefile
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.h [new file with mode: 0644]