diff options
author | Chris Wilson | 2017-01-05 16:30:20 +0100 |
---|---|---|
committer | Chris Wilson | 2017-01-05 16:34:41 +0100 |
commit | 56f6e0a7e7b09adb553339f9075696e918b96587 (patch) | |
tree | e3f05bda48b83163900272c097d9d6cd24704164 /drivers/gpu | |
parent | drm/i915: Assert all timeline requests are gone before fini (diff) | |
download | kernel-qcow2-linux-56f6e0a7e7b09adb553339f9075696e918b96587.tar.gz kernel-qcow2-linux-56f6e0a7e7b09adb553339f9075696e918b96587.tar.xz kernel-qcow2-linux-56f6e0a7e7b09adb553339f9075696e918b96587.zip |
drm/i915: Assert that we do create the deferred context
In order to convince static analyzers that the allocation function
returns an error or sets ce->state, assert that it is set afterwards.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170105153023.30575-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index 227978820320..51ecb395551b 100644 --- a/drivers/gpu/drm/i915/intel_lrc.c +++ b/drivers/gpu/drm/i915/intel_lrc.c @@ -781,6 +781,7 @@ static int execlists_context_pin(struct intel_engine_cs *engine, if (ret) goto err; } + GEM_BUG_ON(!ce->state); flags = PIN_GLOBAL; if (ctx->ggtt_offset_bias) |