summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vc4/vc4_validate_shaders.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-10-10 06:25:07 +0300
committerEric Anholt <eric@anholt.net>2015-12-08 07:01:56 +0300
commitc826a6e1064419f78855463cf29ce9e8b9d25bf4 (patch)
tree5e14c5eccefaaf37b87684737e852ba87a621d89 /drivers/gpu/drm/vc4/vc4_validate_shaders.c
parent10028c5ab107d3765c7fc282b6c45324d1602155 (diff)
downloadlinux-c826a6e1064419f78855463cf29ce9e8b9d25bf4.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_validate_shaders.c')
0 files changed, 0 insertions, 0 deletions