• Axel Davy's avatar
    present: Fix Async swap logic · 22037358
    Axel Davy authored
    According to the spec, PresentOptionAsync should only
    trigger a different behaviour when the target msc has been reached.
    
    In this case if the driver is able to do async swaps, we use
    them to avoid a screen copy.
    
    When the target msc hasn't been reached yet, we want to use sync swaps.
    
    v2: Fix indentation and simplify checks for Async flips
    Signed-off-by: default avatarAxel Davy <axel.davy@ens.fr>
    Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
    22037358
present.c 30.4 KB