From: Melissa Wen <mwen@igalia.com>
To: Alex Hung <alex.hung@amd.com>,
harry.wentland@amd.com, sunpeng.li@amd.com,
alexander.deucher@amd.com, christian.koenig@amd.com,
airlied@gmail.com, simona@ffwll.ch, contact@emersion.fr,
daniels@collabora.com, amd-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org
Cc: Xaver Hugl <xaver.hugl@kde.org>
Subject: Re: [PATCH] drm/amd/display: Fix gamma 2.2 colorop TFs
Date: Thu, 12 Mar 2026 19:35:36 -0300 [thread overview]
Message-ID: <6db1bdd6-5f8f-4b8a-a457-c4e0a6a0f9d6@igalia.com> (raw)
In-Reply-To: <20260311211837.2482799-1-alex.hung@amd.com>
On 11/03/2026 18:18, Alex Hung wrote:
> Use GAMMA22 for degamma/blend and GAMMA22_INV for shaper so
> curves match the color pipeline.
Oh, thanks for this fix!
I had a hard time figuring out that the problem I was facing in the
userspace was that I was trying setting an incorrect value, because
I hadn't paid attention to how it was exposed in the kernel. Unf!
Reviewed-by: Melissa Wen <mwen@igalia.com>
>
> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/5016
> Tested-by: Xaver Hugl <xaver.hugl@kde.org>
> Signed-off-by: Alex Hung <alex.hung@amd.com>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c
> index d59ba82d3d7c..aa4658867e55 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c
> @@ -37,19 +37,19 @@ const u64 amdgpu_dm_supported_degam_tfs =
> BIT(DRM_COLOROP_1D_CURVE_SRGB_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_PQ_125_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_BT2020_INV_OETF) |
> - BIT(DRM_COLOROP_1D_CURVE_GAMMA22_INV);
> + BIT(DRM_COLOROP_1D_CURVE_GAMMA22);
>
> const u64 amdgpu_dm_supported_shaper_tfs =
> BIT(DRM_COLOROP_1D_CURVE_SRGB_INV_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_PQ_125_INV_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_BT2020_OETF) |
> - BIT(DRM_COLOROP_1D_CURVE_GAMMA22);
> + BIT(DRM_COLOROP_1D_CURVE_GAMMA22_INV);
>
> const u64 amdgpu_dm_supported_blnd_tfs =
> BIT(DRM_COLOROP_1D_CURVE_SRGB_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_PQ_125_EOTF) |
> BIT(DRM_COLOROP_1D_CURVE_BT2020_INV_OETF) |
> - BIT(DRM_COLOROP_1D_CURVE_GAMMA22_INV);
> + BIT(DRM_COLOROP_1D_CURVE_GAMMA22);
>
> #define MAX_COLOR_PIPELINE_OPS 10
>
next prev parent reply other threads:[~2026-03-12 22:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 21:18 [PATCH] drm/amd/display: Fix gamma 2.2 colorop TFs Alex Hung
2026-03-12 22:35 ` Melissa Wen [this message]
2026-03-13 4:43 ` Claude review: " Claude Code Review Bot
2026-03-13 4:43 ` Claude Code Review Bot
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=6db1bdd6-5f8f-4b8a-a457-c4e0a6a0f9d6@igalia.com \
--to=mwen@igalia.com \
--cc=airlied@gmail.com \
--cc=alex.hung@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=contact@emersion.fr \
--cc=daniels@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=simona@ffwll.ch \
--cc=sunpeng.li@amd.com \
--cc=xaver.hugl@kde.org \
/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