drm/i915: Remove the rounding down of the gen4+ fence region
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Jan 2017 16:16:12 +0000 (16:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jan 2017 08:12:21 +0000 (08:12 +0000)
commitcea84d16c3da717e99ea43108ca50bcc72ff50a1
tree72f33973dfbd162320fff13e2a480ad3eff3ec9a
parent944397f04f24eaf05125896dcb601c0e1c917879
drm/i915: Remove the rounding down of the gen4+ fence region

Restricting the fence to the end of the previous tile-row breaks access
to the final portion of the object. On gen2/3 we employed lazy fencing
to pad out the fence with scratch page to provide access to the tail,
and now we also pad out the object on gen4+ we can apply the same fix.

Fixes: af1a7301c7cf ("drm/i915: Only fence tiled region of object.")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170109161613.11881-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_fence_reg.c