aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_tiling.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-04-09 04:45:05 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-18 03:43:20 -0400
commit3a062478308187d4b4d0ef546a16e66852d03489 (patch)
treebadc8dadee86229c6b671e9ca0c7fb36aa06142a /drivers/gpu/drm/i915/i915_gem_tiling.c
parentfe48d8de34eeaefb2c71dab68ea7c236f06e5877 (diff)
drm/i915: Increase max fence pitch limit to 256KB on IVB+
BSpec contains several scattered notes which state that the maximum fence stride was increased to 256KB on IVB. Testing on real hardware agrees. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_tiling.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_tiling.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index b56185f4babb..537545be69db 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -217,9 +217,12 @@ i915_tiling_ok(struct drm_device *dev, int stride, int size, int tiling_mode)
217 tile_width = 512; 217 tile_width = 512;
218 218
219 /* check maximum stride & object size */ 219 /* check maximum stride & object size */
220 if (INTEL_INFO(dev)->gen >= 4) { 220 /* i965+ stores the end address of the gtt mapping in the fence
221 /* i965 stores the end address of the gtt mapping in the fence 221 * reg, so dont bother to check the size */
222 * reg, so dont bother to check the size */ 222 if (INTEL_INFO(dev)->gen >= 7) {
223 if (stride / 128 > GEN7_FENCE_MAX_PITCH_VAL)
224 return false;
225 } else if (INTEL_INFO(dev)->gen >= 4) {
223 if (stride / 128 > I965_FENCE_MAX_PITCH_VAL) 226 if (stride / 128 > I965_FENCE_MAX_PITCH_VAL)
224 return false; 227 return false;
225 } else { 228 } else {