drm/amd/display: Implement gamma correction using input LUT
authorAric Cyr <aric.cyr@amd.com>
Wed, 21 Dec 2016 01:24:24 +0000 (20:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:06:52 +0000 (17:06 -0400)
commitd7194cf6b8ddf0344e70834397d0b1af2cc5fe05
tree5cf6188fb1d2d3b9974d396dc03b08b79609ba30
parent3c25e920f011d785725985733ca2625defbf680f
drm/amd/display: Implement gamma correction using input LUT

The dc_gamma in dc_surface will be programmed to the input
LUT if provided.  If dc_gamma is not provided in dc_surface
regamma may be used to emulate gamma.

Some refactor and cleanup included as well.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
21 files changed:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
drivers/gpu/drm/amd/display/dc/dce/dce_opp.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_ipp.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_ipp.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_ipp_gamma.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_v.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_v.h
drivers/gpu/drm/amd/display/dc/dce80/dce80_ipp.c
drivers/gpu/drm/amd/display/dc/dce80/dce80_ipp.h
drivers/gpu/drm/amd/display/dc/dce80/dce80_ipp_gamma.c
drivers/gpu/drm/amd/display/dc/inc/gamma_types.h [deleted file]
drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
drivers/gpu/drm/amd/display/modules/color/color.c