drm/i915: Introduce vfunc read_luts() to create hw lut
authorSwati Sharma <swati2.sharma@intel.com>
Wed, 29 May 2019 09:50:51 +0000 (15:20 +0530)
committerJani Nikula <jani.nikula@intel.com>
Wed, 5 Jun 2019 10:02:03 +0000 (13:02 +0300)
commit2740e81aad0f6e3ce48fea03a4cf4a4f36a717b8
tree2dc72fe90e538c6b663eb2ac7c24516978749436
parentbcc8737ddcaad43acbb9ccf768f1be9c61bd493f
drm/i915: Introduce vfunc read_luts() to create hw lut

In this patch, a vfunc read_luts() is introduced to create a hw lut
i.e. lut having values read from gamma/degamma registers which will
later be used to compare with sw lut to validate gamma/degamma lut values.

v3: -Rebase
v4: -Renamed intel_get_color_config to intel_color_get_config [Jani]
    -Wrapped get_color_config() [Jani]
v5: -Renamed intel_color_get_config() to intel_color_read_luts()
    -Renamed get_color_config to read_luts
v6: -Renamed intel_color_read_luts() back to intel_color_get_config()
     [Jani and Ville]

Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1559123462-7343-2-git-send-email-swati2.sharma@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_color.c
drivers/gpu/drm/i915/intel_color.h