aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/inc
diff options
context:
space:
mode:
authorAnthony Koo <Anthony.Koo@amd.com>2016-12-16 10:43:21 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:05:41 -0400
commitc5ea922237f7dda25c488810a7c1ee9deadc9684 (patch)
treed9ae6be9f7d5c7dadacba448759cacb62cb33b3f /drivers/gpu/drm/amd/display/modules/inc
parentdrm/amd/display: define reg helpers to update registers with 8 and 9 fields (diff)
downloadlinux-dev-c5ea922237f7dda25c488810a7c1ee9deadc9684.tar.xz
linux-dev-c5ea922237f7dda25c488810a7c1ee9deadc9684.zip
drm/amd/display: Refactor to move gamma correction to module
Refactor part 4 - Moving input gamma correction programming into color module DM will translate to dc_gamma structure, but programming will be moved into the color module. Later, this will allow gamma correction to be added on top of in/out transfer function curves. Signed-off-by: Anthony Koo <anthony.koo@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@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/modules/inc')
-rw-r--r--drivers/gpu/drm/amd/display/modules/inc/mod_color.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_color.h b/drivers/gpu/drm/amd/display/modules/inc/mod_color.h
index 787c2c0a0e14..fbf908141ba7 100644
--- a/drivers/gpu/drm/amd/display/modules/inc/mod_color.h
+++ b/drivers/gpu/drm/amd/display/modules/inc/mod_color.h
@@ -168,6 +168,10 @@ bool mod_color_set_saturation(struct mod_color *mod_color,
const struct dc_stream **streams, int num_streams,
int saturation_value);
+bool mod_color_set_input_gamma_correction(struct mod_color *mod_color,
+ const struct dc_stream **streams, int num_streams,
+ struct dc_gamma *gamma);
+
bool mod_color_persist_user_preferred_quantization_range(
struct mod_color *mod_color,
const struct dc_sink *sink,