summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_context.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-09-17 09:47:41 -0400
committerZack Rusin <[email protected]>2007-09-18 06:31:22 -0400
commitf117327a3f246713abfd4dc4320d4a1a7f1b811a (patch)
tree81c5c58c0ae0685c917996ad04f10003aa95cfa3 /src/mesa/pipe/p_context.h
parente16c045b83f5c5b4f4064df67623bb76b46b6619 (diff)
Make sampler an immutable state object.
Switch the sample to be an immutable state object.
Diffstat (limited to 'src/mesa/pipe/p_context.h')
-rw-r--r--src/mesa/pipe/p_context.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mesa/pipe/p_context.h b/src/mesa/pipe/p_context.h
index b9af69fc050..0913e490967 100644
--- a/src/mesa/pipe/p_context.h
+++ b/src/mesa/pipe/p_context.h
@@ -92,6 +92,15 @@ struct pipe_context {
void (*delete_blend_state)(struct pipe_context *,
const struct pipe_blend_state *);
+ const struct pipe_sampler_state * (*create_sampler_state)(
+ struct pipe_context *,
+ const struct pipe_sampler_state *);
+ void (*bind_sampler_state)(struct pipe_context *,
+ unsigned unit,
+ const struct pipe_sampler_state *);
+ void (*delete_sampler_state)(struct pipe_context *,
+ const struct pipe_sampler_state *);
+
void (*set_alpha_test_state)( struct pipe_context *,
const struct pipe_alpha_test_state * );
@@ -135,10 +144,6 @@ struct pipe_context {
void (*set_stencil_state)( struct pipe_context *,
const struct pipe_stencil_state * );
- void (*set_sampler_state)( struct pipe_context *,
- unsigned unit,
- const struct pipe_sampler_state * );
-
void (*set_texture_state)( struct pipe_context *,
unsigned unit,
struct pipe_mipmap_tree * );