drm/amd/display: Pass init_data into DCN resource creation
authorHarry Wentland <harry.wentland@amd.com>
Wed, 13 Feb 2019 21:20:27 +0000 (16:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:41:40 +0000 (22:41 -0500)
commitd9673c920c035df8f17445d5c81142dbe4bf51a0
tree352cf410a5cffa4ef242b27d883231c45ffcbbdf
parenta504ad265dec380d7314b8e02984c8d294ab0bd5
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>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.h
drivers/gpu/drm/amd/display/dc/inc/resource.h