projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b32785
)
i965: Update old comment about state cache sizing.
author
Eric Anholt
<eric@anholt.net>
Thu, 10 Jun 2010 00:16:05 +0000
(17:16 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 11 Jun 2010 07:15:56 +0000
(
00:15
-0700)
src/mesa/drivers/dri/i965/brw_state_cache.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_state_cache.c
b/src/mesa/drivers/dri/i965/brw_state_cache.c
index ea81ad13417dd4ce829a743bc12cb476fe69f804..f1d89484fcef33ccf6907afc330dd20fa582f5a2 100644
(file)
--- 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);