提交 b3ff538c 编写于 作者: D Dmytro Laktyushkin 提交者: Alex Deucher

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: NDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: NEric Bernstein <Eric.Bernstein@amd.com>
Acked-by: NQingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 74a16675
...@@ -101,7 +101,11 @@ struct resource_funcs { ...@@ -101,7 +101,11 @@ struct resource_funcs {
struct dc *dc, struct dc *dc,
struct dc_state *context, struct dc_state *context,
bool fast_validate); 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)( int (*populate_dml_pipes)(
struct dc *dc, struct dc *dc,
struct dc_state *context, struct dc_state *context,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册