diff options
author | Eric Anholt <[email protected]> | 2010-06-09 17:16:05 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-06-11 00:15:56 -0700 |
commit | 315ef0312a222b300ea7d619b95cb80596d3bee2 (patch) | |
tree | fe0324864059ca4b8ee640d687a8d6817e2b1c3d /src/mesa/drivers/dri | |
parent | 3b3278519af67beb3dc9c134a6bd127370cf82f8 (diff) |
i965: Update old comment about state cache sizing.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index ea81ad13417..f1d89484fce 100644 --- a/src/mesa/drivers/dri/i965/brw_state_cache.c +++ b/src/mesa/drivers/dri/i965/brw_state_cache.c @@ -494,8 +494,8 @@ brw_state_cache_check_size(struct brw_context *brw) if (INTEL_DEBUG & DEBUG_STATE) printf("%s (n_items=%d)\n", __FUNCTION__, brw->cache.n_items); - /* un-tuned guess. We've got around 20 state objects for a total of around - * 32k, so 1000 of them is around 1.5MB. + /* 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) brw_clear_cache(brw, &brw->cache); |