• Chris Wilson's avatar
    drm/i915: Introduce i915_gem_object_finish_gtt() · b5ffc9bc
    Chris Wilson authored
    Like its siblings finish_gpu(), this function clears the object from the
    GTT domain forcing it to be trigger a domain invalidation should we ever
    need to use via the GTT again.
    
    Note that the most important side-effect of finishing the GTT domain
    (aside from clearing the tracking read/write domains) is that it imposes
    an memory barrier so that all accesses are complete before it returns,
    which is important if you intend to be modifying translation tables
    shortly afterwards. The second most important side-effect is that it
    tears down the GTT mappings forcing a page-fault and invalidation on
    next user access to the object.
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    b5ffc9bc
i915_gem.c 105 KB