• Chris Wilson's avatar
    drm/i915: put context upon switching · 112522f6
    Chris Wilson authored
    In order to be notified of when the context and all of its associated
    objects is idle (for if the context maps to a ppgtt) we need a callback
    from the retire handler. We can arrange this by using the kref_get/put
    of the context for request tracking and by inserting a request to
    demarque the switch away from the old context.
    
    [Ben: fixed minor error to patch compile, AND s/last_context/from/]
    Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    112522f6
intel_ringbuffer.h 7.59 KB