drm/i915/gtt: Fold gen8 insertions into one
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 16 Aug 2019 09:47:54 +0000 (12:47 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2019 07:23:29 +0000 (08:23 +0100)
commiteb7c022ddc0c26c2969d04d2dd4dcc799dbe159c
tree093577aa414da0958ce99aa548e9794a92698e38
parent356c484822e6ac97dad6947c083fc45d07332c7c
drm/i915/gtt: Fold gen8 insertions into one

As we give page directory pointer (lvl 3) structure
for pte insertion, we can fold both versions into
one function by teaching it to get pdp regardless
of top level.

v2: naming and asserts (Chris)

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