diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 20:15:17 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 23:45:28 +0300 |
commit | 66d9cb5d805af70229ffe6f961bf06adc511f469 (patch) | |
tree | aa998422bcaafecdaf64953968c2d1e268e3340f /drivers/gpu/drm/i915/i915_drv.c | |
parent | e62e8ad1ba5701e0e0c1371041cbb677f75ba3fb (diff) | |
download | linux-66d9cb5d805af70229ffe6f961bf06adc511f469.tar.xz |
drm/i915: Mock the GEM device for self-testing
A simulacrum of drm_i915_private to let us pretend interactions with the
device.
v2: Tidy init error paths
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-6-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index ac1b3582ca55..efb1f64f0e41 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c @@ -2668,3 +2668,7 @@ static struct drm_driver driver = { .minor = DRIVER_MINOR, .patchlevel = DRIVER_PATCHLEVEL, }; + +#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST) +#include "selftests/mock_drm.c" +#endif |