• Mika Kuoppala's avatar
    drm/i915: Add null state batch to active list · 46470fc9
    Mika Kuoppala authored
    for proper refcounting to take place as we use
    i915_add_request() for it.
    
    i915_add_request() also takes the context for the request
    from ring->last_context so move the null state batch
    submission after the ring context has been set.
    
    v2: we need to check for correct ring now (Ville Syrjälä)
    v3: no need to expose i915_gem_move_object_to_active (Chris Wilson)
    v4: cargoculted vma/active/inactive error handling removed (Chris Wilson)
    
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Damien Lespiau <damien.lespiau@intel.com>
    Signed-off-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    46470fc9
i915_gem_context.c 23.6 KB