summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_vma.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-02-13 17:15:45 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-02-13 20:46:40 +0000
commite3c7a1c5377e54f99689a18cb85ae7f3b633b58a (patch)
tree09abb0edb015632fae448e892427add44e0d752f /drivers/gpu/drm/i915/i915_vma.c
parentaae4a3d811753d3f79c43c932b8f7d1bcbf42fb0 (diff)
downloadlinux-e3c7a1c5377e54f99689a18cb85ae7f3b633b58a.tar.bz2
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.c3
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