1
0
Fork 0

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
hifive-unleashed-5.1
Chris Wilson 2017-01-05 15:30:20 +00:00
parent d51dafaf07
commit 56f6e0a7e7
1 changed files with 1 additions and 0 deletions

View File

@ -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)