Skip to content
Commit c826a6e1 authored by Eric Anholt's avatar Eric Anholt
Browse files

drm/vc4: Add a BO cache.



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>
parent 10028c5a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment