• Eric Anholt's avatar
    drm/vc4: Add a BO cache. · c826a6e1
    Eric Anholt authored
    We need to allocate new BOs in the kernel as part of each frame, but
    the CMA allocator is way too slow for that.  As an optimization, keep
    track of recently-freed BOs and reuse them, with a 1 second timeout to
    fully free them back to the system.
    
    This improves 3D performance by about 15%.
    Signed-off-by: default avatarEric Anholt <eric@anholt.net>
    c826a6e1
vc4_bo.c 9.47 KB