]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2f7f016fe3586a1e365c0106af87600728bbf4f
tree90a1ce47640573aa694de66a75d0cfca59292efb
parentec9cc6540060fa5ab0a37cd279001cf2ccd63c03
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