[PATCH] drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DSC_SUPPORT=n
Mikita Lipski
mlipski at amd.com
Wed Oct 16 17:39:07 UTC 2019
Reviewed-by: Mikita Lipski <mikita.lipski at amd.com>
On 16.10.2019 12:13, Alex Deucher wrote:
> Add proper config check.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> 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 914e378bcda4..4f0331810696 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
> @@ -1910,8 +1910,10 @@ int dcn20_populate_dml_pipes_from_context(
> pipes[pipe_cnt].dout.output_bpp = output_bpc * 3;
> }
>
> +#ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT
> if (res_ctx->pipe_ctx[i].stream->timing.flags.DSC)
> pipes[pipe_cnt].dout.output_bpp = res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.bits_per_pixel / 16.0;
> +#endif
>
> /* todo: default max for now, until there is logic reflecting this in dc*/
> pipes[pipe_cnt].dout.output_bpc = 12;
>
--
Thanks,
Mikita Lipski
Software Engineer, AMD
mikita.lipski at amd.com
More information about the amd-gfx
mailing list