diff options
author | Eric Anholt <[email protected]> | 2012-07-12 14:05:29 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-08-12 19:08:25 -0700 |
commit | 97a5f0ff2eb3a6e8b303ce402a4e1d9be7e7b323 (patch) | |
tree | 35186d5a188dd076a334d69b4229d7910e0e29d2 /src/mesa | |
parent | fc3b7c9b56701f23b002543de33a8d8c43f9bdc2 (diff) |
i965: Add performance debug for when the state cache gets nuked.
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_cache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index 4ae8e1212ff..57a5ee9b413 100644 --- a/src/mesa/drivers/dri/i965/brw_state_cache.c +++ b/src/mesa/drivers/dri/i965/brw_state_cache.c @@ -375,8 +375,11 @@ 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 * state cache. */ - if (brw->cache.n_items > 1000) + if (brw->cache.n_items > 1000) { + perf_debug("Exceeded state cache size limit. Clearing the set " + "of compiled programs, which will trigger recompiles\n"); brw_clear_cache(brw, &brw->cache); + } } |