diff options
author | Zack Rusin <[email protected]> | 2007-09-19 12:35:29 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2007-09-19 13:12:09 -0400 |
commit | c0bf7322088715bb411068c3d631b0c4be8cdff5 (patch) | |
tree | acc04e8f411800c3dbdc6672585d38894dd11b5d /src/mesa/pipe/cso_cache | |
parent | b3cc74aa448f42340cbd01578a51f94eb2949618 (diff) |
Redo the cso cache to map driver data in a lot more pleasing way.
Drivers can now create whatever they want from the state template. We
use cso_state object to store the template (necessary during lookups),
and the driver data. Convert blend state to the new semantics.
Diffstat (limited to 'src/mesa/pipe/cso_cache')
-rw-r--r-- | src/mesa/pipe/cso_cache/cso_cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/cso_cache/cso_cache.h b/src/mesa/pipe/cso_cache/cso_cache.h index 352e1a6a592..7ac59089229 100644 --- a/src/mesa/pipe/cso_cache/cso_cache.h +++ b/src/mesa/pipe/cso_cache/cso_cache.h @@ -48,6 +48,11 @@ struct cso_cache { struct cso_hash *vs_hash; }; +struct cso_blend { + struct pipe_blend_state state; + void *data; +}; + enum cso_cache_type { CSO_BLEND, CSO_SAMPLER, |