drm/i915: track objects in the gtt
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 5 Nov 2010 19:24:53 +0000 (20:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Nov 2010 20:14:45 +0000 (20:14 +0000)
commit93a37f20eabeea4039130527b07453038c07f471
treeedea203d4753ba92bb07edc796d29a4645105ba0
parentf050a8abbda0efcd597c6b1825e3b9ce4d613383
drm/i915: track objects in the gtt

This is required to restore gtt mappings on resume when agp is gone.

The right way to do this would be to make sturct drm_mm_node embeddable
and use the allocation list maintained by the drm memory manager. But
that's a bigger project. Getting rid of the per bo agp_mem will save
more memory than this wastes, anyway.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c