Skip to content
  • Michel Dänzer's avatar
    Store FB for each CRTC in drmmode_flipdata_rec · 9b6782c8
    Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
    
    
    We were only storing the FB provided by the client, but on CRTCs with
    TearFree enabled, we use a separate FB. This could cause
    drmmode_flip_handler to fail to clear drmmode_crtc->flip_pending, which
    could result in a hang when waiting for the pending flip to complete. We
    were trying to avoid that by always clearing drmmode_crtc->flip_pending
    when TearFree is enabled, but that wasn't reliable, because
    drmmode_crtc->tear_free can already be FALSE at this point when
    disabling TearFree.
    
    Now that we're keeping track of each CRTC's flip FB separately,
    drmmode_flip_handler can reliably clear flip_pending, and we no longer
    need the TearFree hack.
    
    Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    9b6782c8