]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit905fb4de96ebcd3d062103565be74c4ecf8f8e59
tree45375c91fb02bfdd92aaa6c5b58ee25f465d6ef2
parentaacfec53d06e795812f3b29a2f4d012cbef1cccb
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