diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 20:15:45 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 23:46:40 +0300 |
commit | e3c7a1c5377e54f99689a18cb85ae7f3b633b58a (patch) | |
tree | 09abb0edb015632fae448e892427add44e0d752f /drivers/gpu/drm/i915/i915_vma.c | |
parent | aae4a3d811753d3f79c43c932b8f7d1bcbf42fb0 (diff) | |
download | linux-e3c7a1c5377e54f99689a18cb85ae7f3b633b58a.tar.xz |
drm/i915: Test creation of VMA
Simple test to exercise creation and lookup of VMA within an object.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-34-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_vma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_vma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c index e75494c1ef52..e6c565fd6e61 100644 --- a/drivers/gpu/drm/i915/i915_vma.c +++ b/drivers/gpu/drm/i915/i915_vma.c @@ -690,3 +690,6 @@ destroy: return 0; } +#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST) +#include "selftests/i915_vma.c" +#endif |