drm: More links for gamma support helpers
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/drm_color_mgmt.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_color_mgmt.c +3 -0
@@ -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,
Signature · 6 lines
2.11.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · On Tue, 20 Jun 2017 11:42:28 +0200 Daniel Vetter <[email protected]> wrote:
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_setalready explains this properly.Cc Peter Rosin <[email protected]>Cc Boris Brezillon <[email protected]>
Quoted 10 lines
Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/drm_color_mgmt.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/drm_color_mgmt.c +0
-0
drivers/gpu/drm/drm_color_mgmt.c EXPORT_SYMBOL(drm_color_lut_extract); · line 136
Quoted 9 lines
drivers/gpu/drm/drm_color_mgmt.c +3
-0@@ -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,
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Boris Brezillon
Quoted 5 lines · On Tue, 20 Jun 2017 11:42:28 +0200 Daniel Vetter <[email protected]> wrote:
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_setalready explains this properly.
Quoted 4 lines
Quoted 2 lines
Cc Peter Rosin <[email protected]>Cc Boris Brezillon <[email protected]>Reviewed-by Boris Brezillon <[email protected]>
Thanks for the review, applied.
-Daniel
Quoted 21 lines
Quoted 20 lines
Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/drm_color_mgmt.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/drm_color_mgmt.c +3
-0@@ -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,
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel