diff options
| author | Wenjing Liu <wenjing.liu@amd.com> | 2026-07-09 16:46:24 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-10 12:06:28 -0400 |
| commit | 67b42763138c5f1d700d1bd1c94d4df58965b55a (patch) | |
| tree | 3616b3017d72cb0ea1d222245ff8679bbf62e333 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 7e3422ee337f9f77773e30aaa89cb7ad60a48dac (diff) | |
| download | linux-67b42763138c5f1d700d1bd1c94d4df58965b55a.tar.gz linux-67b42763138c5f1d700d1bd1c94d4df58965b55a.zip | |
drm/amd/display: Route DCN6 mode support calcs through function pointer table
[Why]
dml2_core_dcn6_funcs_mode_support.c called DCN5 and DCN6 calcs
functions directly by name, coupling the mode support flow to
specific generations. Routing through the calcs table lets a
future core generation reuse this flow without editing it.
[How]
Add a static get_calcs(ctx) helper returning ctx->calcs->dcn6.
Replace every direct dcn5_*/dcn6_* calcs call with
get_calcs(ctx)->slot(...). Assign calc_ms_ctx->calcs from
core->calcs when the context is built. Drop the now-unused
dml2_core_dcn5_calcs_dchub.h, dml2_core_dcn5_calcs_display_pipe.h,
and dml2_core_dcn6_calcs_dchub.h includes in favor of
dml2_core_dcn6_calcs.h.
Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
