From d9498f89bf0c4ca9e2244b93d97ea5cc15109d46 Mon Sep 17 00:00:00 2001 From: Roman Li Date: Mon, 19 Jun 2017 16:50:39 -0400 Subject: [PATCH 0530/4131] drm/amd/display: fix non-dcn compilation Signed-off-by: Roman Li Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/core/dc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index a4cc6ea..18fde50 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -970,8 +970,11 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc) } /* 3rd param should be true, temp w/a for RV*/ +#if defined(CONFIG_DRM_AMD_DC_DCN1_0) core_dc->hwss.set_bandwidth(core_dc, context, core_dc->ctx->dce_version != DCN_VERSION_1_0); - +#else + core_dc->hwss.set_bandwidth(core_dc, context, true); +#endif return true; } -- 2.7.4