intel: Compute in-aperture size for relaxed fenced objects
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Nov 2010 09:50:06 +0000 (09:50 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Nov 2010 09:54:47 +0000 (09:54 +0000)
commit51b895041c65f7ec9ecda48e79279dde29258b07
tree5cf5afaab1d4a1d3e95240d98e35fd446185b44f
parentd17681d538ce86a3f8d6d1c7407df3ceb2bcc499
intel: Compute in-aperture size for relaxed fenced objects

For relaxed fencing the object may only consume the small set of active
pages, but still requires a fence region once bound into the aperture.
This is the size we need to use when computing the maximum possible
aperture space that could be used by a single batchbuffer and so avoid
hitting ENOSPC.

Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c