]> git.hungrycats.org Git - linux/commit
Revert "drm/amd/display: Remove unused cm3_helper_translate_curve_to_degamma_hw_format"
authorMelissa Wen <mwen@igalia.com>
Tue, 23 Jun 2026 15:58:58 +0000 (17:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 15:21:06 +0000 (11:21 -0400)
commite0378c21fc431b125e10d2f81037af8340273ca7
tree89bf980467f974e7de876da1b4eab76a635d747f
parent0a06bc174f07753526a680a541515eb2391cdbca
Revert "drm/amd/display: Remove unused cm3_helper_translate_curve_to_degamma_hw_format"

This reverts commit 8b89acc0b2baecfe331f5336e7ff1fcc5a44b062.

So that we can detach NL->L LUT programming from L->NL one, i.e., we can
use cm3_helper_translate_curve_to_degamma_hw_format for plane degamma and
blend (post-3DLUT curve) and cm3_helper_translate_curve_to_hw_format for
plane shaper (pre-3DLUT curve) and stream regamma.

Tested-by: Matthew Schwartz <matthew.schwartz@linux.dev>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_cm_common.c
drivers/gpu/drm/amd/display/dc/dwb/dcn30/dcn30_cm_common.h