[Intel-gfx] [PATCH v2 3/3] drm/i915: Store a pointer to intel_context in i915_request

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 19 12:35:48 UTC 2018


Quoting Tvrtko Ursulin (2018-04-19 13:29:42)
> 
> On 19/04/2018 12:58, Chris Wilson wrote:
> > To ease the frequent and ugly pointer dance of
> > &request->gem_context->engine[request->engine->id] during request
> > submission, store that pointer as request->hw_context. One major
> > advantage that we will exploit later is that this decouples the logical
> > context state from the engine itself.
> > 
> > v2: Set mock_context->ops so we don't crash and burn in selftests.
> >      Cleanups from Tvrtko.
> 
> Which ones? I have to re-read it all? :I

All but fixing engine->class and the semantics differences between
hw_context and gem_context. Other than that I'm seeing if the gvt guys
even read the ml ;)
-Chris


More information about the Intel-gfx mailing list