Commit 56f6e0a7 authored by Chris Wilson's avatar Chris Wilson

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: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170105153023.30575-2-chris@chris-wilson.co.uk
parent d51dafaf
...@@ -781,6 +781,7 @@ static int execlists_context_pin(struct intel_engine_cs *engine, ...@@ -781,6 +781,7 @@ static int execlists_context_pin(struct intel_engine_cs *engine,
if (ret) if (ret)
goto err; goto err;
} }
GEM_BUG_ON(!ce->state);
flags = PIN_GLOBAL; flags = PIN_GLOBAL;
if (ctx->ggtt_offset_bias) if (ctx->ggtt_offset_bias)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment