[Intel-gfx] [PATCH v4 2/3] drm/i915/perf: prepare driver to receive multiple ctx handles

Chris Wilson chris at chris-wilson.co.uk
Tue Apr 7 16:22:36 UTC 2020


Quoting Lionel Landwerlin (2020-04-07 13:35:39)
> -static struct intel_context *oa_context(struct i915_perf_stream *stream)
> -{
> -       return stream->pinned_ctx ?: stream->engine->kernel_context;
> -}

Idle thought: create a

stream->context = intel_context_create(stream->engine);

so I can stop worrying about the kernel_context. (What's the cost of one
more context, heh?)
-Chris


More information about the Intel-gfx mailing list