drm/i915: reduce some of the duplication of tiling checking

i915_gem_object_fenceable was mostly just a repeat of the
i915_gem_object_fence_offset_ok, but also checking the size (which was
checkecd when we allowed that BO to be tiled in the first place). So
instead, export the latter function and use it in place.

Signed-Off-By: Owain G. Ainsworth <oga@openbsd.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Owain Ainsworth 2010-02-18 15:33:00 +00:00 • committed by Eric Anholt
commit f590d279eb
3 changed files with 5 additions and 36 deletions