[PATCH v3 0/4] drm/vc4: Atomic color management support
Stefan Schake
stschake at gmail.com
Wed Apr 11 20:49:11 UTC 2018
This series adds support for the gamma and CTM properties to VC4.
The CTM support is somewhat limited in that we can only enable it for one
CRTC at a time and coefficients are S0.9 in hardware. The latter seems
good enough for the various color corrections Android offers.
The CTM support in v3 is an entire rewrite from previous versions since I
didn't previously model our CTM hardware as private atomic state, which is
needed to correctly limit it to one CRTC. Since v2, Eric has also
confirmed from the HDL that CTM in VC4 is applied before gamma lut,
matching the documented behavior for the DRM property.
Eric Anholt (1):
drm/vc4: Add some missing HVS register definitions.
Stefan Schake (3):
drm/vc4: Expose gamma as atomic property
drm/vc4: Move CRTC state to header
drm/vc4: Add CTM support
drivers/gpu/drm/vc4/vc4_crtc.c | 74 ++++++++----------
drivers/gpu/drm/vc4/vc4_drv.h | 36 +++++++++
drivers/gpu/drm/vc4/vc4_kms.c | 167 ++++++++++++++++++++++++++++++++++++++++-
drivers/gpu/drm/vc4/vc4_regs.h | 96 +++++++++++++++++++++++
4 files changed, 328 insertions(+), 45 deletions(-)
--
2.7.4
More information about the dri-devel
mailing list