summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2015-12-24 22:49:20 +0000
committerRussell King <rmk@arm.linux.org.uk>2015-12-24 22:49:20 +0000
commit66f624b47cca55fc20145a78a407c81391d53c91 (patch)
tree04b97454d6d8528c437f037f3516412cbce36a7d
parent0db6ca5b10a3ceb93c6d657a767e6f56e3102a32 (diff)
common: add 8M bo-cache
Add an 8MB bo-cache, which helps when we allocate aligned 1080p buffers via DRI. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--common/bo-cache.c2
-rw-r--r--common/bo-cache.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/bo-cache.c b/common/bo-cache.c
index 061ab1d..d2ba0a3 100644
--- a/common/bo-cache.c
+++ b/common/bo-cache.c
@@ -28,7 +28,7 @@ static size_t bucket_size[NUM_BUCKETS] = {
655360, 786432, 917504,
1310720, 1572864, 1835008,
2621440, 3145728, 3670016,
- 3686400, 8294400,
+ 3686400, 8294400, 8388608,
};
void bo_cache_init(struct bo_cache *cache, void (*free)(struct bo_entry *))
diff --git a/common/bo-cache.h b/common/bo-cache.h
index 0bc5ac0..b397827 100644
--- a/common/bo-cache.h
+++ b/common/bo-cache.h
@@ -7,7 +7,7 @@
#include "compat-list.h"
/* Number of buckets in the BO cache */
-#define NUM_BUCKETS (3*9 + 2)
+#define NUM_BUCKETS (3*9 + 3)
struct bo_cache;
struct bo_entry;