drm/i915: Flatten engine init control flow
Now that sanity prevails and we have the clean split between software init and starting the engines we can drop all the "have we allocate this struct already?" nonsense. Execlist code could benefit quite a bit more still, but that's for another patch. Reviewed-by: Dave Gordon <david.s.gordon@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
@@ -1833,8 +1833,7 @@ int intel_lr_context_deferred_create(struct intel_context *ctx,
|
||||
int ret;
|
||||
|
||||
WARN_ON(ctx->legacy_hw_ctx.rcs_state != NULL);
|
||||
if (ctx->engine[ring->id].state)
|
||||
return 0;
|
||||
WARN_ON(ctx->engine[ring->id].state);
|
||||
|
||||
context_size = round_up(get_lr_context_size(ring), 4096);
|
||||
|
||||
|
Reference in New Issue
Block a user