aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorOwain Ainsworth <zerooa@googlemail.com>2010-02-18 10:33:00 -0500
committerEric Anholt <eric@anholt.net>2010-02-22 11:54:42 -0500
commitf590d279eb4978352af163a88b001f156c7147d2 (patch)
treefeee8fcf6dc7444c0ec9c5cc6647150c0abd90d9 /drivers/gpu/drm/i915/i915_drv.h
parent10ae9bd25acf394c8fa2f9d795dfa9cec4d19ed6 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 953ad64e0553..40b0da37b1f1 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -914,7 +914,8 @@ void i915_gem_object_do_bit_17_swizzle(struct drm_gem_object *obj);
914void i915_gem_object_save_bit_17_swizzle(struct drm_gem_object *obj); 914void i915_gem_object_save_bit_17_swizzle(struct drm_gem_object *obj);
915bool i915_tiling_ok(struct drm_device *dev, int stride, int size, 915bool i915_tiling_ok(struct drm_device *dev, int stride, int size,
916 int tiling_mode); 916 int tiling_mode);
917bool i915_obj_fenceable(struct drm_device *dev, struct drm_gem_object *obj); 917bool i915_gem_object_fence_offset_ok(struct drm_gem_object *obj,
918 int tiling_mode);
918 919
919/* i915_gem_debug.c */ 920/* i915_gem_debug.c */
920void i915_gem_dump_object(struct drm_gem_object *obj, int len, 921void i915_gem_dump_object(struct drm_gem_object *obj, int len,