[PATCH 00/10] Support 24 bit DGLUT for MTL+

Borah, Chaitanya Kumar chaitanya.kumar.borah at intel.com
Wed Sep 14 12:47:53 UTC 2022


D14 onwards Degamma/PRE-CSC LUT precision has been increased from
16 bit to 24 bits. For LUT values greater than or equal to 0 and
less than 1.0, the LUT value is used to linearly interpolate between
two adjacent points of the first 129 gamma entries to create the
result value. The first 128 entries are stored as 24 bits per color
in an unsigned 0.24 format with 0 integer and 24 fractional. The
129th, 130th and 131th entries are stored as 27 bits per color in
an unsigned 3.24 format with 3 integer and 24 fractional bits.

This patch set adds support for this change while keeping backward
compatibility for legacy applications

Borah, Chaitanya Kumar (10):
  INTEL_DII: drm/color: Add pipe degamma mode property
  INTEL_DII: drm/i915/color: Use new helper function
  INTEL_DII: drm/i915/mtl: Add degamma lut range for 24 bit degamma LUT
  INTEL_DII: drm/i915/mtl: Attach degamma mode property
  INTEL_DII: drm: Add Client Cap for advance degamma mode
  INTEL_DII: drm: Add helper functions for extended LUT
  INTEL_DII: drm/i915/color: Add checks for extended luts
  INTEL_DII: drm/i915/mtl: Add check for 24 bit precision DG LUT
  INTEL_DII: drm/i915/mtl: Add support for 24 bit precision DG LUT
  INTEL_DII: drm/i915/mtl: Add legacy degamma lut support

 drivers/gpu/drm/drm_atomic_uapi.c          |  13 +-
 drivers/gpu/drm/drm_color_mgmt.c           |  86 +++++++-
 drivers/gpu/drm/drm_ioctl.c                |   5 +
 drivers/gpu/drm/i915/display/intel_color.c | 224 ++++++++++++++++++++-
 include/drm/drm_atomic.h                   |   1 +
 include/drm/drm_color_mgmt.h               |  24 ++-
 include/drm/drm_crtc.h                     |  27 ++-
 include/drm/drm_file.h                     |   8 +
 include/uapi/drm/drm.h                     |  10 +
 9 files changed, 376 insertions(+), 22 deletions(-)

-- 
2.25.1



More information about the Intel-gfx-trybot mailing list