i965: checkpoint commit: use two state caches instead of one
authorBrian Paul <brianp@vmware.com>
Wed, 22 Apr 2009 17:08:46 +0000 (11:08 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Apr 2009 17:08:46 +0000 (11:08 -0600)
commitf9af97c7a5d81226a87d79baf8fb00231c96398d
treeac3d321a3f28601c22bb8701c8b443fa4646e9a2
parenta071a8d2e72e52e6a8906448b171756c8920ce96
i965: checkpoint commit: use two state caches instead of one

The new, second cache will only be used for surface-related items.
Since we can create many surfaces the original, single cache could get
filled quickly.  When we cleared it, we had to regenerate shaders, etc.
With two caches, we can avoid doing that.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_cache.c
src/mesa/drivers/dri/i965/brw_state_upload.c