]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Introduce i915_vm_to_ggtt()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 08:56:38 +0000 (09:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 11:17:32 +0000 (12:17 +0100)
commit9da8c1f6c7ba1a9772046d7f34ee9c89ab195ac6
treef1423f712ccdec8a7f62dd2c2b1597111b613f88
parent24e63e43210fd8fe7f939f21a180c589eefd880b
drm/i915: Introduce i915_vm_to_ggtt()

In a couple of places, we have an i915_address_space that we know is
really an i915_ggtt that we want to use. Create an inline helper to
convert from the i915_address_space subclass into its container.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461833819-3991-4-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c