drm/i915: Remove a defunct BUG_ON
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Nov 2010 13:56:11 +0000 (13:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 23 Nov 2010 20:19:15 +0000 (20:19 +0000)
This used to check the precondition that all fences were to be located
in a mappable area, redundant now as those two parameters are combined
into one.

After pinning, we assert that the buffer is bound into the desired
region.

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

index 027212e5c34a17c35d853797ee4b5c181a20e721..7d6ce34789ca48af5c6643f719ef0bb299a5190e 100644 (file)
@@ -4248,7 +4248,6 @@ i915_gem_object_pin(struct drm_i915_gem_object *obj,
        int ret;
 
        BUG_ON(obj->pin_count == DRM_I915_GEM_OBJECT_MAX_PIN_COUNT);
-       BUG_ON(map_and_fenceable && !map_and_fenceable);
        WARN_ON(i915_verify_lists(dev));
 
        if (obj->gtt_space != NULL) {