]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Execlists cannot pin a context without the object
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Feb 2016 11:22:31 +0000 (11:22 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 26 Feb 2016 13:16:36 +0000 (13:16 +0000)
commitba1dc08cb8be91c8fa0ee6e87ef2cbcbc804506f
tree6c4a1acaf4b69af78930ea0a0a61b6d743cccf4c
parent8fb3f035cbd2a1b2646c373f15998e7feab03555
drm/i915: Execlists cannot pin a context without the object

Given that the intel_lr_context_pin cannot succeed without the object,
we cannot reach intel_lr_context_unpin() without first allocating that
object - so we can remove the redundant test.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1456485751-15213-1-git-send-email-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_lrc.c