drm/i915: Use alphabetical names for sprites
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 17 Apr 2013 14:48:51 +0000 (17:48 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:55:50 +0000 (09:55 +0200)
commit06da8da2b014d6cc98fa86e72b605e525e6d6884
treeac1efb23e972e4418e643ba98ccb6d5980b635bc
parent4bb6f1f3270923cdcd57293ea736955d5c35db72
drm/i915: Use alphabetical names for sprites

Add sprite_name() macro which should be used with the kind of sprites
that are fixed to pipes (gen4.5+).

Also use dev_priv->num_plane to calculate the sprite index insted
assuming two sprites per pipe. This should make it print the right
name.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c