• Daniel Vetter's avatar
    drm/atomic: Integrate fence support · e2330f07
    Daniel Vetter authored
    This patch is for enabling async commits. It replaces an earlier
    approach which added an async boolean paramter to the ->prepare_fb
    callbacks. The idea is that prepare_fb picks up the right fence to
    synchronize against, which is then used by the synchronous commit
    helper. For async commits drivers can either register a callback to
    the fence or simply do the synchronous wait in their async work queue.
    
    v2: Remove unused variable.
    
    v3: Only wait for fences after the point of no return in the part
    of the commit function which can be run asynchronously. This is after
    the atomic state has been swapped in, hence now check
    plane->state->fence.
    
    Also add a WARN_ON to make sure we don't try to wait on a fence when
    there's no fb, just as a sanity check.
    Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
    e2330f07
drm_crtc.h 48.3 KB