summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-06-20 11:42:28 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-06-20 12:13:11 +0200
commitd7b66de513179065408908a79cfbe3a11a15e6eb (patch)
tree006c2fc0f65dce9edd29b0c46da6b498b6dfc982
parentc50a115b6e916b93f6fee0ede8ec1358b083c840 (diff)
downloadop-kernel-dev-d7b66de513179065408908a79cfbe3a11a15e6eb.zip
op-kernel-dev-d7b66de513179065408908a79cfbe3a11a15e6eb.tar.gz
drm: More links for gamma support helpers
It's not obvious that when using the new color manager stuff you still need to wire up the legacy helper to get legacy LUT support. Improve this with more links. drm_crtc_funcs->gamma_set already explains this properly. Cc: Peter Rosin <peda@axentia.se> Cc: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170620094228.4757-1-daniel.vetter@ffwll.ch
-rw-r--r--drivers/gpu/drm/drm_color_mgmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_color_mgmt.c b/drivers/gpu/drm/drm_color_mgmt.c
index 3eda500..fe09827 100644
--- a/drivers/gpu/drm/drm_color_mgmt.c
+++ b/drivers/gpu/drm/drm_color_mgmt.c
@@ -128,6 +128,9 @@ EXPORT_SYMBOL(drm_color_lut_extract);
* optional. The gamma and degamma properties are only attached if
* their size is not 0 and ctm_property is only attached if has_ctm is
* true.
+ *
+ * Drivers should use drm_atomic_helper_legacy_gamma_set() to implement the
+ * legacy &drm_crtc_funcs.gamma_set callback.
*/
void drm_crtc_enable_color_mgmt(struct drm_crtc *crtc,
uint degamma_lut_size,
OpenPOWER on IntegriCloud