]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Expose full 1024 LUT entries on ivb+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 3 Apr 2019 19:16:33 +0000 (22:16 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 3 Apr 2019 19:26:13 +0000 (22:26 +0300)
commit9569b15a196c88a7005aa3820d6dab5bd98d608f
treec2f733f22acbf0c89c4a86f7996890266f8116ff
parent8aaa1b2dbac3a306970fe03e0b234b28465aee25
drm/i915: Expose full 1024 LUT entries on ivb+

On ivb+ we can select between the regular 10bit LUT mode with
1024 entries, and the split mode where the LUT is split into
seprate degamma and gamma halves (each with 512 entries). Currently
we expose the split gamma size of 512 as the GAMMA/DEGAMMA_LUT_SIZE.

When using only degamma or gamma (not both) we are wasting half of
the hardware LUT entries. Let's flip that around so that we expose
the full 1024 entries and just throw away half of the user provided
entries when using the split gamma mode.

Cc: Matt Roper <matthew.d.roper@intel.com>
Suggested-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190401200231.2333-8-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_color.c