[Intel-gfx] [PATCH 2/2] drm/i915: Allow large objects to be tiled on gen2/3

Chris Wilson chris at chris-wilson.co.uk
Fri Feb 3 11:50:36 UTC 2017


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 <chris at chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin at linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
---
 drivers/gpu/drm/i915/i915_gem_tiling.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index 62148396c796..01b883abf57a 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -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) ||
-- 
2.11.0



More information about the Intel-gfx mailing list