X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fdrivers%2Fdri%2Fi965%2Fbrw_state_cache.c;h=8823b22357d724e99fe01c0754b7c70f8e6f4cc9;hb=87cdefed405da1a57a006737297d20ba0c25fa1b;hp=57a5ee9b4132fcd2162049f6769ffe61365feed4;hpb=ac889b24109ba0aec4f8c7f103d3c23e78c11a29;p=mesa.git diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index 57a5ee9b413..8823b22357d 100644 --- a/src/mesa/drivers/dri/i965/brw_state_cache.c +++ b/src/mesa/drivers/dri/i965/brw_state_cache.c @@ -372,10 +372,10 @@ brw_clear_cache(struct brw_context *brw, struct brw_cache *cache) void brw_state_cache_check_size(struct brw_context *brw) { - /* un-tuned guess. Each object is generally a page, so 1000 of them is 4 MB of + /* un-tuned guess. Each object is generally a page, so 2000 of them is 8 MB of * state cache. */ - if (brw->cache.n_items > 1000) { + if (brw->cache.n_items > 2000) { perf_debug("Exceeded state cache size limit. Clearing the set " "of compiled programs, which will trigger recompiles\n"); brw_clear_cache(brw, &brw->cache);