• Vandana Kannan's avatar
    drm/i915: DRRS calls based on frontbuffer · a93fad0f
    Vandana Kannan authored
    Calls have been added to invalidate/flush DRRS whenever invalidate/flush is
    called as part of frontbuffer tracking.
    Apart from calls as a result of GEM tracking to fb invalidate/flush, a
    call has been added to invalidate fb obj from crtc_page_flip as well. This
    is to track busyness through flip calls.
    The call to fb_obj_invalidate (in flip) is placed before queuing flip for this
    obj.
    
    drrs_invalidate() and drrs_flush() check for drrs.dp which would be NULL if
    it was setup in drrs_enable(). This covers for the condition when DRRS is
    not supported.
    
    v2: Removing the call to invalidate_drrs from page_flip.
    This has not been tested on Android yet, but, in case DRRS transtions do not
    work as expected, check by adding back this call in page_flip.
    Signed-off-by: default avatarVandana Kannan <vandana.kannan@intel.com>
    Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    a93fad0f
intel_frontbuffer.c 9.49 KB