diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-04-17 18:48:51 +0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-04-18 11:55:50 +0400 |
commit | 06da8da2b014d6cc98fa86e72b605e525e6d6884 (patch) | |
tree | ac1efb23e972e4418e643ba98ccb6d5980b635bc /drivers/gpu/drm/i915/i915_drv.h | |
parent | 4bb6f1f3270923cdcd57293ea736955d5c35db72 (diff) | |
download | linux-06da8da2b014d6cc98fa86e72b605e525e6d6884.tar.xz |
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.h | 2 |
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 { }; #define plane_name(p) ((p) + 'A') +#define sprite_name(p, s) ((p) * dev_priv->num_plane + (s) + 'A') + enum port { PORT_A = 0, PORT_B, |