]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: reduce some of the duplication of tiling checking
authorOwain Ainsworth <zerooa@googlemail.com>
Thu, 18 Feb 2010 15:33:00 +0000 (15:33 +0000)
committerEric Anholt <eric@anholt.net>
Mon, 22 Feb 2010 16:54:42 +0000 (11:54 -0500)
commitf590d279eb4978352af163a88b001f156c7147d2
treefeee8fcf6dc7444c0ec9c5cc6647150c0abd90d9
parent10ae9bd25acf394c8fa2f9d795dfa9cec4d19ed6
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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_tiling.c