static void context_close(struct i915_gem_context *ctx) { i915_gem_context_set_closed(ctx); if (ctx->ppgtt) i915_ppgtt_close(&ctx->ppgtt->base); ctx->file_priv = ERR_PTR(-EBADF); i915_gem_context_put(ctx); }
void mock_context_close(struct i915_gem_context *ctx) { i915_gem_context_set_closed(ctx); i915_ppgtt_close(&ctx->ppgtt->base); i915_gem_context_put(ctx); }