summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_state_blend.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2010-02-10 18:59:43 +0100
committerRoland Scheidegger <sroland@vmware.com>2010-02-10 18:59:43 +0100
commit658e94578f8004c01eb8c64254728912527e0c2f (patch)
treeb755ca118cc2fe1e3e0b8c2a5ed639019267e9ae /src/gallium/drivers/softpipe/sp_state_blend.c
parent903bb045b506ed5d64d1de90d8a17bb9d0d56a44 (diff)
softpipe: adapt to stencil ref changes
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state_blend.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_state_blend.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_blend.c b/src/gallium/drivers/softpipe/sp_state_blend.c
index 95ab323433..c63a49e90b 100644
--- a/src/gallium/drivers/softpipe/sp_state_blend.c
+++ b/src/gallium/drivers/softpipe/sp_state_blend.c
@@ -61,7 +61,7 @@ void softpipe_delete_blend_state(struct pipe_context *pipe,
void softpipe_set_blend_color( struct pipe_context *pipe,
- const struct pipe_blend_color *blend_color )
+ const struct pipe_blend_color *blend_color )
{
struct softpipe_context *softpipe = softpipe_context(pipe);
@@ -80,7 +80,7 @@ void softpipe_set_blend_color( struct pipe_context *pipe,
void *
softpipe_create_depth_stencil_state(struct pipe_context *pipe,
- const struct pipe_depth_stencil_alpha_state *depth_stencil)
+ const struct pipe_depth_stencil_alpha_state *depth_stencil)
{
return mem_dup(depth_stencil, sizeof(*depth_stencil));
}
@@ -101,3 +101,13 @@ softpipe_delete_depth_stencil_state(struct pipe_context *pipe, void *depth)
{
FREE( depth );
}
+
+void softpipe_set_stencil_ref( struct pipe_context *pipe,
+ const struct pipe_stencil_ref *stencil_ref )
+{
+ struct softpipe_context *softpipe = softpipe_context(pipe);
+
+ softpipe->stencil_ref = *stencil_ref;
+
+ softpipe->dirty |= SP_NEW_DEPTH_STENCIL_ALPHA;
+}