drm/i915: Not all mappable regions require GTT fence regions
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Nov 2010 11:47:32 +0000 (11:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Nov 2010 20:19:13 +0000 (20:19 +0000)
commit92b88aeb1ad67417c002fdd77409771ca7e5433a
tree64f00bf4a79ccbc61f6a682a38d220940f644489
parent05394f3975dceb107a5e1393e2244946e5b43660
drm/i915: Not all mappable regions require GTT fence regions

Combining map_and_fenceable revealed a bug in
i915_gem_object_gtt_size() in that it always computed the appropriate
fence size for the object regardless of tiling state which caused us to
over-allocate linear buffers when binding to the GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c