display regression on Carrizo

Mario Kleiner mario.kleiner.de at gmail.com
Wed Jun 2 20:50:33 UTC 2021


On Tue, Jun 1, 2021 at 6:50 PM StDenis, Tom <Tom.StDenis at amd.com> wrote:
>
> [AMD Official Use Only]
>
> Hi Mario,
>
> Yes, this diff fixes the display on my Carrizo:
>
> [root at carrizo linux]# git diff
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> index cd864cc83539..ca7739c9f6cb 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
> @@ -1044,7 +1044,7 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx)
>          * SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616 with actual > 10 bpc
>          * precision on at least DCN display engines.
>          */
> -       pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_36BPP;
> +       pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_30BPP;
>         pipe_ctx->plane_res.scl_data.lb_params.alpha_en = plane_state->per_pixel_alpha;
>
>         if (pipe_ctx->plane_res.xfm != NULL)
>
> Tom
>

Thanks. Just sent out a proper patch which should hopefully fix it for
you, limited to dce-11.0 for now.
-mario


More information about the amd-gfx mailing list