summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2014-02-26 12:14:47 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2014-06-20 16:14:15 -0700
commit7204d3f37d8e41e557c41b6ad1721a38085af4aa (patch)
tree1ebd1edfc95b53babbc5d1df6fd3bf382957de6d
parentb7a918b47ff0ce70511f5525d2d693ce87517285 (diff)
drm/i915: Un-hardcode number of page directories
trivial. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index 1a17680d3e49..4338ca67200b 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -257,7 +257,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 intel_context *ctx;