drm/i915: Choose partial chunksize based on tile row size
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:01 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:50 +0000 (22:36 +0100)
commit03af84fe7f48937941fbb4dcd6cf66c68ae0edd4
tree856b00faf34ddc5ed4b8c836dd71fef7d1d5140a
parent49ef5294cda256aa5496ba56bbf859d3c7a17e07
drm/i915: Choose partial chunksize based on tile row size

In order to support setting up fences for partial mappings of an object,
we have to align those mappings with the fence. The minimum chunksize we
choose is at least the size of a single tile row.

v2: Make minimum chunk size a define for later use

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/20160818161718.27187-22-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c