aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-11-24 07:23:44 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2010-11-25 10:04:53 -0500
commit6299f992c0491232f008028a1f40bc9d86c4c76c (patch)
tree7c8d2a23fa6a749ffe5a918bb06c4b78d63a0e26 /drivers/gpu/drm/i915/i915_drv.h
parent2021746e1d5ad1e3b51e24480c566acbb833c7c1 (diff)
drm/i915: Defer accounting until read from debugfs
Simply remove our accounting of objects inside the aperture, keeping only track of what is in the aperture and its current usage. This removes the over-complication of BUGs that were attempting to keep the accounting correct and also removes the overhead of the accounting on the hot-paths. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index b6ca10ade426..4ad34f9c55a2 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -642,17 +642,10 @@ typedef struct drm_i915_private {
642 struct drm_i915_gem_phys_object *phys_objs[I915_MAX_PHYS_OBJECT]; 642 struct drm_i915_gem_phys_object *phys_objs[I915_MAX_PHYS_OBJECT];
643 643
644 /* accounting, useful for userland debugging */ 644 /* accounting, useful for userland debugging */
645 size_t object_memory;
646 size_t pin_memory;
647 size_t gtt_memory;
648 size_t gtt_mappable_memory;
649 size_t mappable_gtt_used;
650 size_t mappable_gtt_total;
651 size_t gtt_total; 645 size_t gtt_total;
646 size_t mappable_gtt_total;
647 size_t object_memory;
652 u32 object_count; 648 u32 object_count;
653 u32 pin_count;
654 u32 gtt_mappable_count;
655 u32 gtt_count;
656 } mm; 649 } mm;
657 struct sdvo_device_mapping sdvo_mappings[2]; 650 struct sdvo_device_mapping sdvo_mappings[2];
658 /* indicate whether the LVDS_BORDER should be enabled or not */ 651 /* indicate whether the LVDS_BORDER should be enabled or not */