[Intel-gfx] [PATCH 6/7] drm/i915: Store last context instead of the obj
Chris Wilson
chris at chris-wilson.co.uk
Fri Apr 5 09:51:57 CEST 2013
On Thu, Apr 04, 2013 at 04:41:53PM -0700, Ben Widawsky wrote:
> Storing the last context requires refcounting. Mika recently submitted
> some refcounting patches which leverages our request mechanism. This is
> insufficient for my needs because we want to know the last context even
> if the request has ended, ie. doing the kref_put when a request is
> finished isn't okay (unless we switch back to the default context, and
> wait for the switch)
This does not address Mika's requirements for tracking a ctx on each
request - but note that request->ctx can be used here instead.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list