drm/i915: Create context desc template when context is created
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 27 Jan 2017 13:03:09 +0000 (15:03 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Mon, 30 Jan 2017 14:36:20 +0000 (16:36 +0200)
commit2355cf088d469f65d180618c24400ded38895b92
tree45375c91fb02bfdd92aaa6c5b58ee25f465d6ef2
parent9751bafc43d599262d9de7e6d988804dc5f5d4aa
drm/i915: Create context desc template when context is created

Move the invariant parts of context desc setup from execlist init
to context creation. This is advantageous when we need to
create different templates based on the context parametrization,
ie. for svm capable contexts.

v2: s/create/default, remove engine->ctx_desc_template

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1485522189-31984-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.h