]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit478148593accbac2d2f2ab5882e4649dbb863a8d
tree7d2df4223c9a376456c1ae57a35612ce23e1fbbc
parent647c99c2b7dffaad4647969df9127f318cbb4682
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]