mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
drm/amdgpu/display: fix the build without CONFIG_DRM_AMD_DC_DSC_SUPPORT
Some code was missing the CONFIG_DRM_AMD_DC_DSC_SUPPORT guard. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f2bd8a0ed7
commit
d3b9f39d84
1 changed files with 2 additions and 0 deletions
|
|
@ -630,9 +630,11 @@ static void dcn20_init_hw(struct dc *dc)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT
|
||||
/* Power gate DSCs */
|
||||
for (i = 0; i < res_pool->res_cap->num_dsc; i++)
|
||||
dcn20_dsc_pg_control(hws, res_pool->dscs[i]->inst, false);
|
||||
#endif
|
||||
|
||||
/* Blank pixel data with OPP DPG */
|
||||
for (i = 0; i < dc->res_pool->timing_generator_count; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue