]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915: Decouple vma vfuncs from vm
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jun 2018 15:40:46 +0000 (16:40 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jun 2018 20:53:11 +0000 (21:53 +0100)
commit93f2cde2a4f7947f6330ecfb9b27d13e2f4d43af
treed3ba0b2c9afc7baa17ccbdaca8d5e9a6b6acb5a0
parent520ea7c581bf3ba4761c1fb61c53b11767665b62
drm/i915: Decouple vma vfuncs from vm

To allow for future non-object backed vma, we need to be able to
specialise the callbacks for binding, et al, the vma. For example,
instead of calling vma->vm->bind_vma(), we now call
vma->ops->bind_vma(). This gives us the opportunity to later override the
operation for a custom vma.

v2: flip order of unbind/bind

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180607154047.9171-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h
drivers/gpu/drm/i915/selftests/mock_gtt.c