summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_state_blend.c
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-09-21 07:00:20 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-09-21 07:00:20 -0400
commit6cb87cf26f904b891faa42268f373864fa33541d (patch)
tree3af84bdc648094b7515ed924bd5d3b2f4e03c407 /src/mesa/pipe/softpipe/sp_state_blend.c
parentb0fa489eba9170c4b102bf0feb1b1c3f02a34e4e (diff)
Make the alpha test state a cso.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_blend.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_state_blend.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_blend.c b/src/mesa/pipe/softpipe/sp_state_blend.c
index cf47607955..cb0921f687 100644
--- a/src/mesa/pipe/softpipe/sp_state_blend.c
+++ b/src/mesa/pipe/softpipe/sp_state_blend.c
@@ -71,17 +71,31 @@ void softpipe_set_blend_color( struct pipe_context *pipe,
* into one file.
*/
+void *
+softpipe_create_alpha_test_state(struct pipe_context *pipe,
+ const struct pipe_alpha_test_state *alpha)
+{
+ return 0;
+}
+
void
-softpipe_set_alpha_test_state(struct pipe_context *pipe,
- const struct pipe_alpha_test_state *alpha)
+softpipe_bind_alpha_test_state(struct pipe_context *pipe,
+ void *alpha)
{
struct softpipe_context *softpipe = softpipe_context(pipe);
- softpipe->alpha_test = *alpha;
+ softpipe->alpha_test = (const struct pipe_alpha_test_state *)alpha;
softpipe->dirty |= SP_NEW_ALPHA_TEST;
}
+void
+softpipe_delete_alpha_test_state(struct pipe_context *pipe,
+ void *alpha)
+{
+ /* do nothing */
+}
+
void *
softpipe_create_depth_stencil_state(struct pipe_context *pipe,
const struct pipe_depth_stencil_state *depth_stencil)