Skip to content

Commit 18c4686

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
drm/amd/display: Call dsc related functions indirectly via dc interface
[Why&How] Accessing dcn20_add_dsc_to_stream_resource directly causes build failure for configuration which has CONFIG_DRM_AMD_DC_DCN disabled. Fix this by calling the corresponding function exposed via dc resource functions. Signed-off-by: Aurabindo Pillai <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Qingqing Zhuo <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ee5dc62 commit 18c4686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ bool compute_mst_dsc_configs_for_state(struct drm_atomic_state *state,
806806
stream = dc_state->streams[i];
807807

808808
if (stream->timing.flags.DSC == 1)
809-
dcn20_add_dsc_to_stream_resource(stream->ctx->dc, dc_state, stream);
809+
dc_stream_add_dsc_to_resource(stream->ctx->dc, dc_state, stream);
810810
}
811811

812812
return true;

0 commit comments

Comments
 (0)