diff options
author | Wesley Chalmers <Wesley.Chalmers@amd.com> | 2019-04-24 15:29:06 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-22 09:34:12 -0500 |
commit | 278141f58e2c9c8f7830f40086c1d43edc6c268b (patch) | |
tree | bbfccf97ac47f0a99cc8147996fec754e6dba51b /drivers | |
parent | 6936c8b1d41514fa498c071c3bed8ff9f6beafc5 (diff) | |
download | linux-278141f58e2c9c8f7830f40086c1d43edc6c268b.tar.bz2 |
drm/amd/display: Use DCN2 functions instead of DCE
[WHY]
DCN code should make as few references to DCE as possible
[HOW]
Copy DCE110 implementation of find_first_free_match_stream_enc_for_link
into DCN10
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c index 8b4853dd4fd4..caebf4746475 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c @@ -40,6 +40,7 @@ #include "dcn20_optc.h" #include "dcn20_hwseq.h" #include "dce110/dce110_hw_sequencer.h" +#include "dcn10/dcn10_resource.h" #include "dcn20_opp.h" #ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT @@ -2448,7 +2449,7 @@ static struct resource_funcs dcn20_res_pool_funcs = { .add_dsc_to_stream_resource = dcn20_add_dsc_to_stream_resource, .remove_dsc_from_stream_resource = dcn20_remove_dsc_from_stream_resource, #endif - .find_first_free_match_stream_enc_for_link = dce110_find_first_free_match_stream_enc_for_link + .find_first_free_match_stream_enc_for_link = dcn10_find_first_free_match_stream_enc_for_link }; bool dcn20_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) |