drm/i915: Allow large objects to be tiled on gen2/3
authorChris Wilson <[email protected]>
Fri, 3 Feb 2017 11:46:00 +0000 (11:46 +0000)
committerChris Wilson <[email protected]>
Fri, 3 Feb 2017 15:55:48 +0000 (15:55 +0000)
We now have partial VMA support to break large objects into fence sized
regions and no longer have to restrict tiling to small objects on gen2/3

Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Joonas Lahtinen <[email protected]>
drivers/gpu/drm/i915/i915_gem_tiling.c

index 152bed2dcb11a879c5a685074be34954acadfbca..8b2b507bdf7ef3c43f17b602a241509066c68429 100644 (file)
@@ -160,14 +160,6 @@ i915_tiling_ok(struct drm_i915_gem_object *obj,
 
                if (!is_power_of_2(stride))
                        return false;
-
-               if (IS_GEN3(i915)) {
-                       if (obj->base.size > I830_FENCE_MAX_SIZE_VAL << 20)
-                               return false;
-               } else {
-                       if (obj->base.size > I830_FENCE_MAX_SIZE_VAL << 19)
-                               return false;
-               }
        }
 
        if (IS_GEN2(i915) ||