summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_gem_tiling.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-02-03 14:46:00 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2017-02-03 18:55:48 +0300
commit955b8e9ca8b924f8c21d43797f8bf8f39908efd3 (patch)
treecdad7ab23fb37822e59082d2a8355f49375ad40f /drivers/gpu/drm/i915/i915_gem_tiling.c
parenta3a1e5336c41ab3763c64152df5f868cb91d20bf (diff)
downloadlinux-955b8e9ca8b924f8c21d43797f8bf8f39908efd3.tar.xz
drm/i915: Allow large objects to be tiled on gen2/3
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@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170203115036.24743-2-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_tiling.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_tiling.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index 152bed2dcb11..8b2b507bdf7e 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) ||