OSDN Git Service

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)
commit1bbdd241ffeb86b29e3dc80539cd1b88037b5fdb
treebfa4bcf6e4832a3fe792e497bcca2146445cb124
parent19b6304aee84644482ceb6a87f0ce09db9a8f714
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