drm/i915: range-restricted bind_to_gtt
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 16 Sep 2010 15:54:23 +0000 (17:54 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Oct 2010 22:31:05 +0000 (23:31 +0100)
commit920afa77ced7124c8bb7d0c4839885618a3b4a54
tree849a91385768a4050df8d605c52a81ea2c255cda
parenta6e0aa421406dc4cfd736c6d07d26ed39ab4f7bc
drm/i915: range-restricted bind_to_gtt

Like before add a parameter mappable (also to gem_object_pin) and
set it depending upon the context. Only bos that are brought into
the gtt due to an execbuffer call can be put into the unmappable
part of the gtt, everything else (especially pinned objects) need
to be put into the mappable part of the gtt.

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
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_overlay.c
drivers/gpu/drm/i915/intel_ringbuffer.c