summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2017-08-19 00:19:34 -0700
committerKenneth Graunke <kenneth@whitecape.org>2017-08-29 16:45:16 -0700
commitdf85a0f54e0ae3925271da5b1fb63adfdbb3fdbd (patch)
treefb3e3b9cbb91a20228179cce5caf27b56dfd5123
parent9a09e4684d64fe31682b5c6db9a07bf1337a9b02 (diff)
downloadmesa-df85a0f54e0ae3925271da5b1fb63adfdbb3fdbd.tar.gz
mesa-df85a0f54e0ae3925271da5b1fb63adfdbb3fdbd.tar.bz2
mesa-df85a0f54e0ae3925271da5b1fb63adfdbb3fdbd.zip
i965: Bump the initial program cache size from 4kB to 16kB.
Our initial size of 4kB is way too small to do anything useful, so we end up growing it at least a few times. We may as well start it larger. Some data points: - Dinoshade (from Mesa Demos): hit 8kB. - Chromium 60: hit 16kB after browsing a few things in Google Docs. - GFXBench4 TRex/Manhattan 3.1: hit 128kB - Unigine Valley 1.0: hit 512kB It might make sense to start it even larger. Acked-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/mesa/drivers/dri/i965/brw_program_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program_cache.c b/src/mesa/drivers/dri/i965/brw_program_cache.c
index 907150f507e..adb0cd5a23b 100644
--- a/src/mesa/drivers/dri/i965/brw_program_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_program_cache.c
@@ -387,7 +387,7 @@ brw_init_caches(struct brw_context *brw)
cache->items =
calloc(cache->size, sizeof(struct brw_cache_item *));
- cache->bo = brw_bo_alloc(brw->bufmgr, "program cache", 4096, 64);
+ cache->bo = brw_bo_alloc(brw->bufmgr, "program cache", 16384, 64);
if (can_do_exec_capture(brw->screen))
cache->bo->kflags = EXEC_OBJECT_CAPTURE;