]> 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)
commit75b974a859e5d9a3ceaa3aa03bbc27d404b32231
treed8c7e461f4157fe3dd1013501a556d35da77c57a
parent77715906921251bd9f75bcf4825f176df3f91208
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