]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: detach fpu operations from dcn10_validate_bandwidth in calcs
authorMelissa Wen <mwen@igalia.com>
Sat, 26 Mar 2022 20:24:47 +0000 (19:24 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Apr 2022 03:05:54 +0000 (23:05 -0400)
commit851c5f242a03d7e9b00d2d1537d959e54fa101e8
tree42ccdcc958240099c17f64112ece88d3528505ce
parentebd9c071d29e56b21ef5155757e0da9926d8d814
drm/amd/display: detach fpu operations from dcn10_validate_bandwidth in calcs

dcn10_validate_bandwidth is only used on dcn10 files, but is declared in
dcn_calcs files. Rename dcn10_* to dcn_* in calcs, remove DC_FP_* wrapper
inside DML folder and create an specific dcn10_validate_bandwidth in
dcn10_resources that calls dcn_validate_bandwidth and properly wraps that
FPU function with DC_FP_* macro.

Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/dml/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h