]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Remember to create the fake preempt context
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Oct 2017 10:59:27 +0000 (11:59 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Oct 2017 12:21:16 +0000 (13:21 +0100)
commit54e416cb6cf7f6d277ff6fc07adc8036620c3eb2
tree20b08e2ee744c78e148cca4f590640a1a2f372b9
parent2601dfae1ae133c259b3fe5618043080bb815d6d
drm/i915/selftests: Remember to create the fake preempt context

For the fake device we have our own set of mock contexts that need to
match the real contexts we normally create. Currently this requires us
to manually instantiate them for the selftests, which I forgot.

Reported-by: Matthew Auld <matthew.william.auld@gmail.com>
Fixes: d71a137f82f3 ("drm/i915: Introduce a preempt context")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: MichaƂ Winiarski <michal.winiarski@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171005105927.22991-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
drivers/gpu/drm/i915/selftests/mock_gem_device.c