When merging Daniel's full-gtt patches I had a set of tweaks which I
thought I had undone. I was half right...
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31286
Reported-by: jinjin.wang@intel.com
Reported-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
        int ret;
 
        BUG_ON(obj_priv->pin_count == DRM_I915_GEM_OBJECT_MAX_PIN_COUNT);
+       BUG_ON(need_fence && !mappable);
        WARN_ON(i915_verify_lists(dev));
 
        if (obj_priv->gtt_space != NULL) {
 
        }
 
        ret = i915_gem_object_pin(obj, alignment,
-                                 !pipelined, obj_priv->tiling_mode);
+                                 !pipelined || obj_priv->tiling_mode,
+                                 obj_priv->tiling_mode);
        if (ret)
                return ret;