aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cache.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-09-19 12:35:29 -0400
committerZack Rusin <[email protected]>2007-09-19 13:12:09 -0400
commitc0bf7322088715bb411068c3d631b0c4be8cdff5 (patch)
treeacc04e8f411800c3dbdc6672585d38894dd11b5d /src/mesa/state_tracker/st_cache.h
parentb3cc74aa448f42340cbd01578a51f94eb2949618 (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/state_tracker/st_cache.h')
-rw-r--r--src/mesa/state_tracker/st_cache.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_cache.h b/src/mesa/state_tracker/st_cache.h
index bcbe19b8236..fb0ff0d4db8 100644
--- a/src/mesa/state_tracker/st_cache.h
+++ b/src/mesa/state_tracker/st_cache.h
@@ -33,17 +33,19 @@
#ifndef ST_CACHE_H
#define ST_CACHE_H
+#include "pipe/cso_cache/cso_cache.h"
+
struct pipe_blend_state;
struct pipe_sampler_state;
struct st_context;
-struct pipe_blend_state * st_cached_blend_state(
- struct st_context *st,
- const struct pipe_blend_state *blend);
+const struct cso_blend *
+st_cached_blend_state(struct st_context *st,
+ const struct pipe_blend_state *blend);
-struct pipe_sampler_state * st_cached_sampler_state(
- struct st_context *st,
- const struct pipe_sampler_state *sampler);
+struct pipe_sampler_state *
+st_cached_sampler_state(struct st_context *st,
+ const struct pipe_sampler_state *sampler);
struct pipe_depth_stencil_state *st_cached_depth_stencil_state(
struct st_context *st,