drm/i915/glk: Load the degamma LUT even in legacy gamma mode
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 17 Feb 2017 12:06:28 +0000 (14:06 +0200)
committerAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 17 Feb 2017 15:14:28 +0000 (17:14 +0200)
commit8d371db4b0a7aa919df9be2be430187fe3e70399
tree0e31fd61cd32388d4e1388038be820697a64c1d5
parent9f235dfa495856ed7b264ee08920601df57333da
drm/i915/glk: Load the degamma LUT even in legacy gamma mode

In Geminilake, the degamma table is enabled or disabled by the pipe CSC
enable bit, so its active even when running in the legacy gamma mode.
So always set sane values for that table, since the default value is all
zeroes.

This fixes blank screens after a suspend/resume cycle while legacy gamma
is in use.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170217120630.6143-2-ander.conselvan.de.oliveira@intel.com
drivers/gpu/drm/i915/intel_color.c