commit | c826a6e1064419f78855463cf29ce9e8b9d25bf4 | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Fri Oct 09 20:25:07 2015 -0700 |
committer | Eric Anholt <eric@anholt.net> | Mon Dec 07 20:01:56 2015 -0800 |
tree | 5e14c5eccefaaf37b87684737e852ba87a621d89 | |
parent | 10028c5ab107d3765c7fc282b6c45324d1602155 [diff] |
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: Eric Anholt <eric@anholt.net>