diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-03-27 14:48:32 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-24 08:57:31 -0400 |
commit | 84139d1e39265c20a79daace16ef4b6a9a644d9a (patch) | |
tree | 9803402ed2232def2b9e151870281c4ceb624334 | |
parent | 7feb8b88e7513d6b093539c2b7291cfb87cb917a (diff) |
drm/i915/skl: Introduce a I915_MAX_PLANES macro
This can be useful to declare structures around pipes and planes and
don't have to go back auditing the code if the next platorm bump that
number.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index a8d4e23aba45..c3dbaaed2ff9 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -76,6 +76,14 @@ enum transcoder { | |||
76 | }; | 76 | }; |
77 | #define transcoder_name(t) ((t) + 'A') | 77 | #define transcoder_name(t) ((t) + 'A') |
78 | 78 | ||
79 | /* | ||
80 | * This is the maximum (across all platforms) number of planes (primary + | ||
81 | * sprites) that can be active at the same time on one pipe. | ||
82 | * | ||
83 | * This value doesn't count the cursor plane. | ||
84 | */ | ||
85 | #define I915_MAX_PLANES 3 | ||
86 | |||
79 | enum plane { | 87 | enum plane { |
80 | PLANE_A = 0, | 88 | PLANE_A = 0, |
81 | PLANE_B, | 89 | PLANE_B, |