]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix transfer function passed to build_coefficients()
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 16:36:29 +0000 (12:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Oct 2022 15:33:31 +0000 (11:33 -0400)
commit69011ced42985792014ffe49d1446d09c56519dd
tree6d3374acc17f08e4cc2ab010ee03b860cc0d10bd
parent82eecb6b949e9e96ee04939d4a2fac86f0f6497e
drm/amd/display: fix transfer function passed to build_coefficients()

The default argument should be enum TRANSFER_FUNCTION_SRGB rather than
the current boolean value which improperly maps to
TRANSFER_FUNCTION_BT709.

Commit 8fe444b163b5 ("drm/amd/display: Revert adding degamma coefficients")
looks to have improperly reverted
commit c6ecd6d31971 ("drm/amd/display: Add regamma/degamma coefficients and set sRGB when TF is BT709")
replacing the enum value with a boolean value.

Cc: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Cc: Jaehyun Chung <jaehyun.chung@amd.com>
Cc: Zeng Heng <zengheng4@huawei.com>
Fixes: 8fe444b163b5 ("drm/amd/display: Revert adding degamma coefficients")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c