diff options
author | Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> | 2020-05-27 10:34:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-07-01 01:59:20 -0400 |
commit | b3ff538cbe9dba6142ede522b796975c6b59a0b7 (patch) | |
tree | 37adf371c7e9d8e8a718d613f21c47d1ce27ab27 /drivers/gpu/drm/amd/display/dc/inc | |
parent | drm/amd/display: Add helper to convert DC status (diff) | |
download | linux-dev-b3ff538cbe9dba6142ede522b796975c6b59a0b7.tar.xz linux-dev-b3ff538cbe9dba6142ede522b796975c6b59a0b7.zip |
drm/amd/display: make calculate watermarks a function pointer
To allow code reuse with minimal duplication watermark
calculation needs to be function pointer.
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/core_types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h index 4fbed8dd0c59..5f985fcbedf1 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h +++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h @@ -101,7 +101,11 @@ struct resource_funcs { struct dc *dc, struct dc_state *context, bool fast_validate); - + void (*calculate_wm)( + struct dc *dc, struct dc_state *context, + display_e2e_pipe_params_st *pipes, + int pipe_cnt, + int vlevel); int (*populate_dml_pipes)( struct dc *dc, struct dc_state *context, |