diff options
author | Eric Anholt <eric@anholt.net> | 2009-02-12 03:54:58 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-09-30 11:27:27 -0700 |
commit | 49fbdd18ed738feaf73b7faba4d3577cd9cc3e59 (patch) | |
tree | 65a5cca320d3f4ad3baadefe975a3628982587e4 /src/mesa/drivers/dri/i965/brw_state.h | |
parent | b77469871a57240b33b61f12cde0da078470237b (diff) |
i965: Fix massive memory allocation for streaming texture usage.
Once we've freed a miptree, we won't see any more state cache requests
that would hit the things that pointed at it until we've let the miptree
get released back into the BO cache to be reused. By leaving those
surface state and binding table pointers that pointed at it around, we
would end up with up to (500 * texture size) in memory uselessly consumed
by the state cache.
Bug #20057
Bug #23530
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 5335eac895..d639656b9d 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -151,6 +151,7 @@ void brw_state_cache_check_size( struct brw_context *brw ); void brw_init_caches( struct brw_context *brw ); void brw_destroy_caches( struct brw_context *brw ); +void brw_state_cache_bo_delete(struct brw_cache *cache, dri_bo *bo); /*********************************************************************** * brw_state_batch.c |