]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Teach igt_gpu_fill_dw() to take intel_context
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Aug 2019 23:51:41 +0000 (00:51 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 24 Aug 2019 08:10:08 +0000 (09:10 +0100)
commitbb26f2bb7abd8058cc7b7b003da5548884aae375
treed8c7e461f4157fe3dd1013501a556d35da77c57a
parent3adc8fd7ef4683fddfaf9e6833eb71a837a8e44c
drm/i915/selftests: Teach igt_gpu_fill_dw() to take intel_context

Avoid having to pass around (ctx, engine) everywhere by passing the
actual intel_context we intend to use. Today we preach this lesson to
igt_gpu_fill_dw and its callers' callers.

The immediate benefit for the GEM selftests is that we aim to use the
GEM context as the control, the source of the engines on which to test
the GEM context.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823235141.31799-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c
drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.h