Implement support for drm properties "GAMMA_LUT" and "CTM"

Submitted by Harsha Manjula Mallikarjun (RBEI/ECF3) on June 22, 2018, 1:23 p.m.

Details

Reviewer None
Submitted June 22, 2018, 1:23 p.m.
Last Updated June 28, 2018, 1:28 p.m.
Revision 3

Cover Letter(s)

Revision 1
      From: Harsha M M <harsha.manjulamallikarjun@in.bosch.com>

current drm backend uses drmModeCrtcSetGamma to set the gamma look up table.
This api is a legacy now. DRM backend should support setting of gamma look up
table through GAMMA_LUT property to keep up with the latest DRM.

DRM has support for setting color transformation matrix. This is useful for
tuning additional display settings like brightness, saturation and hue.

This patch series adds support for setting of these two drm properties along
with respective tests.

Harsha M M (5):
  compositor-drm: Implement support for GAMMA_LUT drm property
  libweston: provide support to set color transformation matrix for
    output
  compositor-drm: add support for CTM property
  tests: add test for setting gamma
  tests: add test for color transformation matrix

 Makefile.am                |  13 ++-
 libweston/compositor-drm.c | 149 +++++++++++++++++++++++++--
 libweston/compositor.h     |  12 +++
 tests/ctm-test.c           | 210 ++++++++++++++++++++++++++++++++++++++
 tests/gamma-test.c         | 248 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 625 insertions(+), 7 deletions(-)
 create mode 100644 tests/ctm-test.c
 create mode 100644 tests/gamma-test.c
    
Revision 2
      From: Harsha M M <harsha.manjulamallikarjun@in.bosch.com>

This patch series implements support for GAMMA_LUT and CTM drm
properties.

Compared to the first series of patches, this one fixes the style issues in set_ctm
interface description. This series just fixes grammatics in comments. No functional
changes.

Harsha M M (5):
  compositor-drm: Implement support for GAMMA_LUT drm property
  libweston: provide support to set color transformation matrix for
    output
  compositor-drm: add support for CTM property
  tests: add test for setting gamma
  tests: add test for color transformation matrix

 Makefile.am                |  13 ++-
 libweston/compositor-drm.c | 149 +++++++++++++++++++++++++--
 libweston/compositor.h     |  12 +++
 tests/ctm-test.c           | 210 ++++++++++++++++++++++++++++++++++++++
 tests/gamma-test.c         | 248 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 625 insertions(+), 7 deletions(-)
 create mode 100644 tests/ctm-test.c
 create mode 100644 tests/gamma-test.c
    
Revision 3
      From: Harsha M M <harsha.manjulamallikarjun@in.bosch.com>

This patch series implements support for GAMMA_LUT and CTM drm
properties.

v3 fixes
--Problem with gamma and ctm tests getting stuck during
  make check. Solution is to terminate the compositor after the
  test completes.
--Fixes white space errors

Harsha M M (5):
  compositor-drm: Implement support for GAMMA_LUT drm property
  libweston: provide support to set color transformation matrix for
    output
  compositor-drm: add support for CTM property
  tests: add test for setting gamma
  tests: add test for color transformation matrix

 Makefile.am                |  13 ++-
 libweston/compositor-drm.c | 149 +++++++++++++++++++++++++--
 libweston/compositor.h     |  12 +++
 tests/ctm-test.c           | 207 ++++++++++++++++++++++++++++++++++++++
 tests/gamma-test.c         | 246 +++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 620 insertions(+), 7 deletions(-)
 create mode 100644 tests/ctm-test.c
 create mode 100644 tests/gamma-test.c
    

Revisions