drm/amd/display: Pass init_data into DCN resource creation
[WHY] The resource constructor currently needs num_virtual_links from init_data but will need access to other items provided by DM. [HOW] Pass init_data into DCN create_resource_pool functions. Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Acked-by: Hersen Wu <hersenxs.wu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
a504ad265d
commit
d9673c920c
@@ -70,11 +70,9 @@ bool resource_construct(
|
||||
struct resource_pool *pool,
|
||||
const struct resource_create_funcs *create_funcs);
|
||||
|
||||
struct resource_pool *dc_create_resource_pool(
|
||||
struct dc *dc,
|
||||
int num_virtual_links,
|
||||
enum dce_version dc_version,
|
||||
struct hw_asic_id asic_id);
|
||||
struct resource_pool *dc_create_resource_pool(struct dc *dc,
|
||||
const struct dc_init_data *init_data,
|
||||
enum dce_version dc_version);
|
||||
|
||||
void dc_destroy_resource_pool(struct dc *dc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user