summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.h
diff options
context:
space:
mode:
authorChris Wilson2017-02-15 09:43:48 +0100
committerChris Wilson2017-02-15 11:07:27 +0100
commite2b763caa6eb68ea56918ee6f79b40b82bdcf7c9 (patch)
treeee59fc6e9943c792d76b22053b8a47452197ca07 /drivers/gpu/drm/i915/i915_gem_gtt.h
parentdrm/i915: Remove bitmap tracking for used-pdes (diff)
downloadkernel-qcow2-linux-e2b763caa6eb68ea56918ee6f79b40b82bdcf7c9.tar.gz
kernel-qcow2-linux-e2b763caa6eb68ea56918ee6f79b40b82bdcf7c9.tar.xz
kernel-qcow2-linux-e2b763caa6eb68ea56918ee6f79b40b82bdcf7c9.zip
drm/i915: Remove bitmap tracking for used-pdpes
We only operate on known extents (both for alloc/clear) and so we can use both the knowledge of the bind/unbind range along with the knowledge of the existing pagetable to avoid having to allocate temporary and auxiliary bitmaps. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170215084357.19977-14-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index a62b0ef1f3fc..3628c7c564ae 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -232,9 +232,8 @@ struct i915_page_directory {
struct i915_page_directory_pointer {
struct i915_page_dma base;
-
- unsigned long *used_pdpes;
struct i915_page_directory **page_directory;
+ unsigned int used_pdpes;
};
struct i915_pml4 {