diff options
author | Stephane Marchesin <[email protected]> | 2006-11-21 12:43:16 +0000 |
---|---|---|
committer | Stephane Marchesin <[email protected]> | 2006-11-21 12:43:16 +0000 |
commit | 0ea45b1ad822ebdce2af3faef77ed776ca32d46b (patch) | |
tree | d4a47f1d784544d8fdb40d15d86e9c1170cf3394 /src/mesa/drivers/dri/nouveau/nouveau_state_cache.h | |
parent | a20cf73053c2c834abe971c9dc824f14c31884fb (diff) |
Add the state caching mechanism. It seems to work, from what I can see.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_state_cache.h')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_state_cache.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_state_cache.h b/src/mesa/drivers/dri/nouveau/nouveau_state_cache.h new file mode 100644 index 00000000000..24882748468 --- /dev/null +++ b/src/mesa/drivers/dri/nouveau/nouveau_state_cache.h @@ -0,0 +1,23 @@ + +#ifndef __NOUVEAU_STATE_CACHE_H__ +#define __NOUVEAU_STATE_CACHE_H__ + +#include "mtypes.h" + +#define NOUVEAU_STATE_CACHE_ENTRIES 2048 + +typedef struct nouveau_state_atom_t{ + uint32_t value; + uint32_t dirty; +}nouveau_state_atom; + +typedef struct nouveau_state_cache_t{ + nouveau_state_atom atoms[NOUVEAU_STATE_CACHE_ENTRIES]; + uint32_t current_pos; + // master dirty flag + uint32_t dirty; +}nouveau_state_cache; + + +#endif + |