dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/amd/display: don't overwrite regamma LUT with empty data
@ 2025-08-22 21:14 Melissa Wen
  2025-08-22 21:14 ` [PATCH 1/2] Revert "drm/amd/display: program output tf when required" Melissa Wen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Melissa Wen @ 2025-08-22 21:14 UTC (permalink / raw)
  To: airlied, alexander.deucher, christian.koenig, harry.wentland,
	simona, sunpeng.li
  Cc: Xaver Hugl, Christopher Snowhill, Michel Dänzer, amd-gfx,
	dri-devel, kernel-dev

Hey,


KDE/Plasma users reported some flickering when applying the regamma CRTC
LUT to an AMD display hardware set using an external or integrated
screen. There is some instability in how the driver stores and updates
color blocks based on color management changes or full update request.
It uses update_flag bits for surface and stream and forces some color
blocks to update without considering the previous settings.

This two-patch series avoids this issue by
(1) not calling set_output_transfer_func when the output TF has not
changed;
(2) preserve the previous out_tf value in the case of a full
update, which was unconditionally setting all update_flag bits to true
regardless of previous values.

This modifies DC and may affect behavior on other platforms. On the
other hand, it avoids unnecessary reprogramming of MPC output gamma.

Melissa

Melissa Wen (2):
  Revert "drm/amd/display: program output tf when required"
  drm/amd/display: don't update out gamma if out_tf didn't change

 drivers/gpu/drm/amd/display/dc/core/dc.c                | 5 +++++
 drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 5 +----
 2 files changed, 6 insertions(+), 4 deletions(-)

-- 
2.47.2


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

end of thread, other threads:[~2025-09-01 21:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22 21:14 [PATCH 0/2] drm/amd/display: don't overwrite regamma LUT with empty data Melissa Wen
2025-08-22 21:14 ` [PATCH 1/2] Revert "drm/amd/display: program output tf when required" Melissa Wen
2025-08-22 21:14 ` [PATCH 2/2] drm/amd/display: don't update out gamma if out_tf didn't change Melissa Wen
2025-08-22 21:22 ` [PATCH 0/2] drm/amd/display: don't overwrite regamma LUT with empty data Melissa Wen
2025-09-01 21:46 ` Melissa Wen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).