]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Refactor execbuffer relocation writing
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:52 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:46 +0000 (22:36 +0100)
commit8ece9fd98170222e8fc0c259152d864c4f6f1750
tree116b08e6ae54198c724f7d3a82e699d8c405fc7f
parent8047af6369a5436bda5fc98d0e659b1284a065b1
drm/i915: Refactor execbuffer relocation writing

With the introduction of the reloc page cache, we are just one step away
from refactoring the relocation write functions into one. Not only does
it tidy the code (slightly), but it greatly simplifies the control logic
much to gcc's satisfaction.

v2: Add selftests to document the relationship between the clflush
flags, the KMAP bit and packing into the page-aligned pointer.

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