Mutter needs a pure 2.4 power curve. The color pipeline only has 2.2. This series adds 2.4, and 2.6 for completeness.
Tested on Navi 48. IGT patches for the Gamma 2.4 and 2.6 tests are on the igt-dev mailing list. Changes in v2: - Put gamma 2.4 and 2.6 on the wide curve in cm_helper_translate_curve_to_hw_format() as well (Sashiko). Harry Wentland (4): drm/colorop: Define Gamma 2.4 and 2.6 and its Inverse drm/amd/display: Use the wide curve for gamma 2.4 and 2.6 drm/amd/display: Add support for 2.4 and 2.6 Gamma and its Inverse drm/amd/display: Add KUnit cases for gamma 2.4 and 2.6 colorops .../amd/display/amdgpu_dm/amdgpu_dm_color.c | 6 +++ .../amd/display/amdgpu_dm/amdgpu_dm_colorop.c | 12 +++-- .../amdgpu_dm/tests/amdgpu_dm_color_test.c | 18 +++++++ .../amdgpu_dm/tests/amdgpu_dm_colorop_test.c | 54 +++++++++++++++++-- .../amd/display/dc/dcn10/dcn10_cm_common.c | 4 +- .../amd/display/dc/dcn30/dcn30_cm_common.c | 2 + drivers/gpu/drm/drm_colorop.c | 4 ++ include/drm/drm_colorop.h | 39 ++++++++++++++ 8 files changed, 132 insertions(+), 7 deletions(-) -- 2.56.1
