drm/i915: Enable pipe gamma for sprites
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 19 Nov 2013 02:32:38 +0000 (18:32 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 21 Nov 2013 08:09:37 +0000 (09:09 +0100)
commit4ea67bc700c0c085e0428b6cb75071ec8c858f7b
treeeae1a50a7955d7a94afc1566ac231278b54e2e78
parentb19870ee67ad8b552db0e7456a8d1d33f96421c0
drm/i915: Enable pipe gamma for sprites

We send the primary and cursor plane data through the gamma unit.
In order to get matching output from sprites, also send the sprite
data through the gamma unit.

In the future we should add some properties to control this
explicitly, and also add properties for the per-sprite gamma ramps
what have you, but for now this seems like a reasonable thing to do.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_sprite.c