drm/i915/glk: Fix degamma lut programming
authorUma Shankar <uma.shankar@intel.com>
Mon, 11 Feb 2019 13:50:21 +0000 (19:20 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 13 Feb 2019 10:25:14 +0000 (11:25 +0100)
commit8957129cb3b0144aceb46b8002cb5d1c45326b01
treec23157f4e24e2e6771b001f35c771dd4d546634e
parentb3b0391af2afa783841fb70eaa715b8a79a17d99
drm/i915/glk: Fix degamma lut programming

Fixed the glk degamma lut programming which currently
was hard coding a linear lut all the time, making degamma
block of glk basically a pass through.

Currently degamma lut for glk is assigned as 0 in platform
configuration. Updated the same to 33 as per the hardware
capability. IGT tests for degamma were getting skipped due to
this, spotted by Swati.

ToDo: The current gamma/degamm lut ABI has just 16bit for each
color component. This is not enough for GLK+, since input
precision is increased to 3.16 which will need 19bit entries.

v2: Added Matt's RB.

v3: Changed uint32_t to u32.

v4: Fixed Maarten's review comment

Credits-to: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1549893025-21837-2-git-send-email-uma.shankar@intel.com
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_color.c