diff options
author | Brian <[email protected]> | 2007-07-10 16:37:18 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-07-10 16:37:18 -0600 |
commit | e6eca5c37e13fd0f9100de127075b1bbed0821c0 (patch) | |
tree | 2e4d852baabd395dfb7cba8f8246772b0918f709 /src/mesa/pipe/softpipe/sp_state_blend.c | |
parent | 227c95737bcf373f934bb96aa0777c45c8575074 (diff) |
Begin hooking up stenciling.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_blend.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_state_blend.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_blend.c b/src/mesa/pipe/softpipe/sp_state_blend.c index ae8950e386e..8bc22b0efc0 100644 --- a/src/mesa/pipe/softpipe/sp_state_blend.c +++ b/src/mesa/pipe/softpipe/sp_state_blend.c @@ -80,3 +80,14 @@ softpipe_set_alpha_test_state(struct pipe_context *pipe, softpipe->dirty |= SP_NEW_ALPHA_TEST; } +void +softpipe_set_stencil_state(struct pipe_context *pipe, + const struct pipe_stencil_state *stencil) +{ + struct softpipe_context *softpipe = softpipe_context(pipe); + + softpipe->stencil = *stencil; + + softpipe->dirty |= SP_NEW_STENCIL; +} + |