mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Hung <alex.hung@amd.com>
To: Melissa Wen <mwen@igalia.com>,
	airlied@gmail.com, alexander.deucher@amd.com,
	christian.koenig@amd.com, harry.wentland@amd.com,
	simona@ffwll.ch, siqueira@igalia.com, sunpeng.li@amd.com
Cc: Krunoslav Kovac <Krunoslav.Kovac@amd.com>,
	"'Dr . David Alan Gilbert'" <linux@treblig.org>,
	Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>,
	Aurabindo Pillai <Aurabindo.Pillai@amd.com>,
	Matthew Schwartz <matthew.schwartz@linux.dev>,
	pekka.paalanen@collabora.com, robert.mader@posteo.de,
	amd-gfx@lists.freedesktop.org, kernel-dev@igalia.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30
Date: Wed, 19 Aug 2026 13:04:07 -0600	[thread overview]
Message-ID: <bbeeb981-c4eb-48c6-a268-bec48d979be5@amd.com> (raw)
In-Reply-To: <20260819161106.27702-3-mwen@igalia.com>



On 8/19/26 10:00, Melissa Wen wrote:
> DCN3.01 presents the same banding issue as reported in the link below,

This affects more than just DCN301 as below:

drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_init.c: .set_blend_lut = 
dcn30_set_blend_lut,
drivers/gpu/drm/amd/display/dc/hwss/dcn301/dcn301_init.c: 
.set_blend_lut = dcn30_set_blend_lut,
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_init.c: .set_blend_lut = 
dcn30_set_blend_lut,
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_init.c: 
.set_blend_lut = dcn30_set_blend_lut,

> but the previous fix doesn't cover this hw. Change the helper for
> degamma/blend curves for DCN30-based family.
> 
> Link: https://lore.kernel.org/amd-gfx/20260623160112.1636801-1-mwen@igalia.com/
> Fixes: 3719314af322 ("drm/amd/display: use a separate helper to translate degamma curves")
> Signed-off-by: Melissa Wen <mwen@igalia.com>
> ---
>   .../gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c    | 10 ++++------
>   1 file changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
> index cb163902e12e..6980f622db0a 100644
> --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
> +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
> @@ -243,10 +243,9 @@ bool dcn30_set_blend_lut(
>   	if (plane_state->cm.blend_func.type == TF_TYPE_HWPWL)
>   		blend_lut = &plane_state->cm.blend_func.pwl;
>   	else if (plane_state->cm.blend_func.type == TF_TYPE_DISTRIBUTED_POINTS) {
> -		result = cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
> +		result = cm3_helper_translate_curve_to_degamma_hw_format(
>   				&plane_state->cm.blend_func,
> -				&dpp_base->regamma_params,
> -				false);
> +				&dpp_base->regamma_params);
>   		if (!result)
>   			return result;
>   
> @@ -337,9 +336,8 @@ bool dcn30_set_input_transfer_func(struct dc *dc,
>   	if (plane_state->in_transfer_func.type == TF_TYPE_HWPWL)
>   		params = &plane_state->in_transfer_func.pwl;
>   	else if (plane_state->in_transfer_func.type == TF_TYPE_DISTRIBUTED_POINTS &&
> -		cm3_helper_translate_curve_to_hw_format(plane_state->ctx,
> -							&plane_state->in_transfer_func,
> -							&dpp_base->degamma_params, false))
> +		cm3_helper_translate_curve_to_degamma_hw_format(&plane_state->in_transfer_func,
> +								&dpp_base->degamma_params))
>   		params = &dpp_base->degamma_params;
>   
>   	result = dpp_base->funcs->dpp_program_gamcor_lut(dpp_base, params);


  reply	other threads:[~2026-08-19 19:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-19 16:00 [PATCH 0/2] drm/amd/display: follow-up fixes for LUT segmentation Melissa Wen
2026-08-19 16:00 ` [PATCH 1/2] drm/amd/display: use halving distribution for all encode-to-linear curves Melissa Wen
2026-08-19 19:03   ` Alex Hung
2026-08-19 16:00 ` [PATCH 2/2] drm/amd/display: use translate_curve_to_degamma_hw_format on DCN30 Melissa Wen
2026-08-19 19:04   ` Alex Hung [this message]
2026-08-19 19:07 ` [PATCH 0/2] drm/amd/display: follow-up fixes for LUT segmentation Alex Hung
2026-08-20  9:38   ` Melissa Wen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbeeb981-c4eb-48c6-a268-bec48d979be5@amd.com \
    --to=alex.hung@amd.com \
    --cc=Aurabindo.Pillai@amd.com \
    --cc=Bhawanpreet.Lakha@amd.com \
    --cc=Krunoslav.Kovac@amd.com \
    --cc=airlied@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=harry.wentland@amd.com \
    --cc=kernel-dev@igalia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@treblig.org \
    --cc=matthew.schwartz@linux.dev \
    --cc=mwen@igalia.com \
    --cc=pekka.paalanen@collabora.com \
    --cc=robert.mader@posteo.de \
    --cc=simona@ffwll.ch \
    --cc=siqueira@igalia.com \
    --cc=sunpeng.li@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®