diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-20 12:36:15 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-21 06:24:17 -0400 |
commit | f13d3f7311add99d1f874a6b67d56426afa35664 (patch) | |
tree | 949e7d6e4606f1b8051a8821a0694d1c5fd65027 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 265db9585e570814d2f7aca109c5563bcde9c948 (diff) |
drm/i915: Track pinned objects
Keep a list of pinned objects and display it via debugfs. Now all
objects that exist in the GTT are always tracked on one of the
active, flushing, inactive or pinned lists.
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index ce8ff8fdc55c..12e9f853a5e9 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -569,6 +569,12 @@ typedef struct drm_i915_private { | |||
569 | */ | 569 | */ |
570 | struct list_head inactive_list; | 570 | struct list_head inactive_list; |
571 | 571 | ||
572 | /** | ||
573 | * LRU list of objects which are not in the ringbuffer but | ||
574 | * are still pinned in the GTT. | ||
575 | */ | ||
576 | struct list_head pinned_list; | ||
577 | |||
572 | /** LRU list of objects with fence regs on them. */ | 578 | /** LRU list of objects with fence regs on them. */ |
573 | struct list_head fence_list; | 579 | struct list_head fence_list; |
574 | 580 | ||