]> 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)
commit83dd37d357ff0ce993b0eb6cf6f5440ad51eca27
tree90a1ce47640573aa694de66a75d0cfca59292efb
parent0abc2b9254b23d8cc27323447cd8525bbccb2888
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