drm/i915/gen8: Un-hardcode number of page directories
authorBen Widawsky <benjamin.widawsky@intel.com>
Thu, 22 Jan 2015 17:01:26 +0000 (17:01 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:12 +0000 (23:28 +0100)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.h

index 9d998ecc5943c853aaf40b5582c0c82cced51ba6..8f7699016711df6083ebd178e5f3443c64c1a942 100644 (file)
@@ -282,7 +282,7 @@ struct i915_hw_ppgtt {
        };
        union {
                dma_addr_t *pt_dma_addr;
-               dma_addr_t *gen8_pt_dma_addr[4];
+               dma_addr_t *gen8_pt_dma_addr[GEN8_LEGACY_PDPES];
        };
 
        struct drm_i915_file_private *file_priv;