]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4677e547e8827209b6b8a16fd94f6193886f861f
tree856b00faf34ddc5ed4b8c836dd71fef7d1d5140a
parentb1ceee7b8fb7bcae588a1d27d2fefa6b48bd9e01
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