2 #ifndef __NOUVEAU_STATE_CACHE_H__
3 #define __NOUVEAU_STATE_CACHE_H__
7 #define NOUVEAU_STATE_CACHE_ENTRIES 2048
8 // size of a dirty requests block
9 // you can play with that and tune the value to increase/decrease performance
10 // but keep it a power of 2 !
11 #define NOUVEAU_STATE_CACHE_HIER_SIZE 32
13 typedef struct nouveau_state_atom_t
{
18 typedef struct nouveau_state_cache_t
{
19 nouveau_state_atom atoms
[NOUVEAU_STATE_CACHE_ENTRIES
];
21 // hierarchical dirty flags
22 uint8_t hdirty
[NOUVEAU_STATE_CACHE_ENTRIES
/NOUVEAU_STATE_CACHE_HIER_SIZE
];