From: Ben Widawsky Date: Thu, 22 Jan 2015 17:01:26 +0000 (+0000) Subject: drm/i915/gen8: Un-hardcode number of page directories X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=17d5538d54c9f9d6e2b44e07d4d577304e22c17a;p=openwrt%2Fstaging%2Fblogic.git drm/i915/gen8: Un-hardcode number of page directories Signed-off-by: Ben Widawsky Signed-off-by: Michel Thierry Reviewed-by: Mika Kuoppala Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h index 9d998ecc5943..8f7699016711 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.h +++ b/drivers/gpu/drm/i915/i915_gem_gtt.h @@ -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;