drm/amd/display: handle empty LUTs in __set_input_tf
authorJoshua Ashton <joshua@froggi.es>
Thu, 16 Nov 2023 19:58:06 +0000 (18:58 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2023 20:25:24 +0000 (15:25 -0500)
commit8d26795ae61a5f64ba7db4f3240dc9ab2138d361
tree1f3c373d663b31f67b4a8bda99d794bad91b0734
parent486c95af5d76047d5cb50727270b1961dacb9380
drm/amd/display: handle empty LUTs in __set_input_tf

Unlike degamma, blend gamma doesn't support hardcoded curve
(predefined/ROM), but we can use AMD color module to fill blend gamma
parameters when we have non-linear plane gamma TF without plane gamma
LUT. The regular degamma path doesn't hit this.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c