]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Refactor gen6_flush_pd()
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 1 Dec 2019 14:09:16 +0000 (14:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 1 Dec 2019 15:18:19 +0000 (15:18 +0000)
commit6b08cdb34a3fc00c2f3051454c32128b4ec9f431
treebfa4bcf6e4832a3fe792e497bcca2146445cb124
parentb1854c28406f844a5fafb98133682c6f82a0ed1b
drm/i915: Refactor gen6_flush_pd()

As the gen6 page directory is written on binding and after every update,
the code ended up duplicated. Refactor the code into a single routine to
share the locking and serialisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191201140916.2128905-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c