[Intel-gfx] [PATCH] drm/i915: Use I915_MAX_PIPES instead of hardcoded value

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Wed Feb 20 15:47:16 CET 2013


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

The pipestat array size should have space for every pipe in the system.
Use the define we have for it.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index e95337c..9fe78f7 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -905,7 +905,7 @@ typedef struct drm_i915_private {
 	struct mutex dpio_lock;
 
 	/** Cached value of IMR to avoid reads in updating the bitfield */
-	u32 pipestat[2];
+	u32 pipestat[I915_MAX_PIPES];
 	u32 irq_mask;
 	u32 gt_irq_mask;
 
-- 
1.7.12.4




More information about the Intel-gfx mailing list