drm/i915: Defer context state allocation for legacy ring submission
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 Apr 2017 10:46:51 +0000 (11:46 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 Apr 2017 11:22:13 +0000 (12:22 +0100)
commit3204c343bb691c42a5e568cbd2a9ec9b2b5703c0
treea1e3c562ab38e3b6a6a3b1bebfde791d0f20c9be
parente3895af8bb12612972efb1a07f0bb02b2853afda
drm/i915: Defer context state allocation for legacy ring submission

Almost from the outset for execlists, we used deferred allocation of the
logical context and rings. Then we ported the infrastructure for pinning
contexts back to legacy, and so now we are able to also implement
deferred allocation for context objects prior to first use on the legacy
submission.

v2: We still need to differentiate between legacy engines, Joonas is
fixing that but I want this first ;) (Joonas)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170427104651.22394-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_ringbuffer.c