diff options
author | Dave Airlie <airlied@linux.ie> | 2006-12-20 09:30:32 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-12-20 09:30:32 +1100 |
commit | e3358dea660f5dec53a8be9e38d725f4fd829e14 (patch) | |
tree | b851da09fa21fe3a7e447cdc43a10ae816d3f910 /src/mesa/drivers/dri/nouveau/nouveau_state_cache.h | |
parent | b497a0cb7c607bfad3389c6831de0dfdc37ee5af (diff) | |
parent | 53d40646bdac2deb7954794e213154e0a4596278 (diff) |
Merge branch 'nouveau-import'
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 0000000000..2488274846 --- /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 + |