diff options
author | Aric Cyr | 2016-12-21 02:24:24 +0100 |
---|---|---|
committer | Alex Deucher | 2017-09-26 23:06:52 +0200 |
commit | d7194cf6b8ddf0344e70834397d0b1af2cc5fe05 (patch) | |
tree | 5cf6188fb1d2d3b9974d396dc03b08b79609ba30 /drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h | |
parent | drm/amd/display: Reset gamma to NULL after release (diff) | |
download | kernel-qcow2-linux-d7194cf6b8ddf0344e70834397d0b1af2cc5fe05.tar.gz kernel-qcow2-linux-d7194cf6b8ddf0344e70834397d0b1af2cc5fe05.tar.xz kernel-qcow2-linux-d7194cf6b8ddf0344e70834397d0b1af2cc5fe05.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h b/drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h index e9ed167c9e41..0457bc7a44d4 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h @@ -110,6 +110,10 @@ struct ipp_funcs { struct input_pixel_processor *ipp, struct ipp_prescale_params *params); + void (*ipp_program_input_lut)( + struct input_pixel_processor *ipp, + const struct dc_gamma *gamma); + /*** DEGAMMA RELATED ***/ bool (*ipp_set_degamma)( struct input_pixel_processor *ipp, |