summaryrefslogtreecommitdiff
path: root/shared-core/i915_drv.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-05-06 21:59:06 -0700
committerKeith Packard <keithp@keithp.com>2008-05-06 21:59:06 -0700
commit6a6c37af9ecaabfe1399a1300cadaff730767013 (patch)
tree5fdcd7396aad7ab84cd523b5660ca8f80577853c /shared-core/i915_drv.h
parent61253f4f677518537368103799c9510b8b5ad1e3 (diff)
[intel-GEM] ref count objects in gtt-lru.
If objects on the lru aren't ref counted, they'll get pulled from the gtt as soon as they are freed. This change does cause objects to get stuck in the gtt until they're forced out by new requests. The lru should get cleaned when the irq occurs.
Diffstat (limited to 'shared-core/i915_drv.h')
-rw-r--r--shared-core/i915_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h
index bd6fa188..daa77f72 100644
--- a/shared-core/i915_drv.h
+++ b/shared-core/i915_drv.h
@@ -262,6 +262,7 @@ struct drm_i915_gem_object {
/** Current space allocated to this object in the GTT, if any. */
struct drm_memrange_node *gtt_space;
+
/** This object's place on the GTT LRU list */
struct list_head gtt_lru_entry;