AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Fixes on CM3 helper for plane shaper LUT
@ 2025-12-08 23:44 Melissa Wen
  2025-12-08 23:44 ` [RFC PATCH 1/2] drm/amd/display: fix wrong color value mapping on DCN32 " Melissa Wen
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Melissa Wen @ 2025-12-08 23:44 UTC (permalink / raw)
  To: airlied, alexander.deucher, christian.koenig, harry.wentland,
	simona, siqueira, sunpeng.li
  Cc: kernel-dev, Melissa Wen, amd-gfx, dri-devel

There are some unexpected banding and shimmer effects when using
steamOS/gamescope color pipeline for HDR on DCN32 or newer families.
Those problems are not present in Steam Deck (DCN301). It happens on
DCN32 because plane shaper LUT uses DCN30 CM3 helper to translate curves
instead of DCN10 CM helper. This series identifies the necessary changes
on CM3 helper to reduce differences on color transformation made by
those two helpers.

Patch 1 aims to solve the shimmer/colorful points that looks like a
wrong map of black values on red/green/blue colors. Patch 2 extends the
delta clamping fix made in commit 27fc10d1095f ("drm/amd/display: Fix
the delta clamping for shaper LUT") to solve some banding effects.

Banding is not fully solved by any helper and needs further
investigation.

One easy way to check the current and expected behavior is moving the
cursor (doing composition) to get the expected result from GFX. When the
cursor disappears, those color transformations are back to be done by
the display hw.

Lemme know your thoughts!

Melissa

Melissa Wen (2):
  drm/amd/display: fix wrong color value mapping on DCN32 shaper LUT
  drm/amd/display: extend delta clamping logic to CM3 LUT helper

 .../amd/display/dc/dcn30/dcn30_cm_common.c    | 32 +++++++++++++++----
 .../display/dc/dwb/dcn30/dcn30_cm_common.h    |  2 +-
 .../amd/display/dc/hwss/dcn30/dcn30_hwseq.c   |  9 +++---
 .../amd/display/dc/hwss/dcn32/dcn32_hwseq.c   | 17 ++++++----
 .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 16 ++++++----
 5 files changed, 50 insertions(+), 26 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-01-16 23:54 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-08 23:44 [RFC PATCH 0/2] Fixes on CM3 helper for plane shaper LUT Melissa Wen
2025-12-08 23:44 ` [RFC PATCH 1/2] drm/amd/display: fix wrong color value mapping on DCN32 " Melissa Wen
2026-01-16 20:29   ` Harry Wentland
2026-01-16 23:54     ` Alex Hung
2025-12-08 23:44 ` [RFC PATCH 2/2] drm/amd/display: extend delta clamping logic to CM3 LUT helper Melissa Wen
2026-01-16 20:27   ` Harry Wentland
2026-01-16 23:52     ` Alex Hung
2025-12-09  1:34 ` [RFC PATCH 0/2] Fixes on CM3 helper for plane shaper LUT Matthew Schwartz
2025-12-09 14:31   ` Melissa Wen
2025-12-09 14:44     ` Melissa Wen
2025-12-09 15:12       ` Harry Wentland
2025-12-09 15:18         ` Melissa Wen
2025-12-09 18:19           ` Matthew Schwartz
2025-12-10 20:46             ` Melissa Wen
2025-12-10 20:56               ` Matthew Schwartz
2026-01-16 17:08 ` Melissa Wen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox