aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-04-17 10:48:51 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-18 03:55:50 -0400
commit06da8da2b014d6cc98fa86e72b605e525e6d6884 (patch)
treeac1efb23e972e4418e643ba98ccb6d5980b635bc /drivers/gpu/drm/i915/i915_drv.h
parent4bb6f1f3270923cdcd57293ea736955d5c35db72 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index d5dcf7fe1ee9..15d0a3a8f319 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -76,6 +76,8 @@ enum plane {
76}; 76};
77#define plane_name(p) ((p) + 'A') 77#define plane_name(p) ((p) + 'A')
78 78
79#define sprite_name(p, s) ((p) * dev_priv->num_plane + (s) + 'A')
80
79enum port { 81enum port {
80 PORT_A = 0, 82 PORT_A = 0,
81 PORT_B, 83 PORT_B,