drm/i915/gem: Roll all of context creation together
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 8 Jul 2021 15:48:34 +0000 (10:48 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Jul 2021 17:49:33 +0000 (19:49 +0200)
commit0eee9977f9d3d8f1e40175dada55b3d00121ac79
tree90a1ce47640573aa694de66a75d0cfca59292efb
parentf92906e220f1f130995a67817cfec7f305a55bfc
drm/i915/gem: Roll all of context creation together

Now that we have the whole engine set and VM at context creation time,
we can just assign those fields instead of creating first and handling
the VM and engines later.  This lets us avoid creating useless VMs and
engine sets and lets us get rid of the complex VM setting code.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210708154835.528166-30-jason@jlekstrand.net
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/gem/selftests/mock_context.c