Skip to content

Commit

Permalink
drm/amd/display: Add DSC guard to dcn3 function pointer
Browse files Browse the repository at this point in the history
The function pointer is not defined without the DSC config flag

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
  • Loading branch information
Bhawanpreet Lakha authored and Bhawanpreet Lakha committed Aug 12, 2020
1 parent ccfd905 commit 665ff32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -2438,7 +2438,9 @@ static const struct resource_funcs dcn30_res_pool_funcs = {
.populate_dml_pipes = dcn30_populate_dml_pipes_from_context,
.acquire_idle_pipe_for_layer = dcn20_acquire_idle_pipe_for_layer,
.add_stream_to_ctx = dcn30_add_stream_to_ctx,
#ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT
.add_dsc_to_stream_resource = dcn20_add_dsc_to_stream_resource,
#endif
.remove_stream_from_ctx = dcn20_remove_stream_from_ctx,
.populate_dml_writeback_from_context = dcn30_populate_dml_writeback_from_context,
.set_mcif_arb_params = dcn30_set_mcif_arb_params,
Expand Down

0 comments on commit 665ff32

Please sign in to comment.