]> 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)
commit95f4579ddd17643b03108ee760b2b85aa37eaa45
tree856b00faf34ddc5ed4b8c836dd71fef7d1d5140a
parent9f2ba3a753007ad7a38ecf1a8b58d730e05eb8d2
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