diff options
author | Marek Olšák <[email protected]> | 2012-01-28 05:50:00 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-01-31 02:17:25 +0100 |
commit | a2361946e782b57f0c63587841ca41c0ea707070 (patch) | |
tree | a1be39a38bcdb2916a3467e624c8787a9293bc68 /src/gallium/drivers/r600/r600_pipe.h | |
parent | 5345e3ea86a3e942ccef083019a76b38b05f3f14 (diff) |
r600g: rework and consolidate stencilref state setting
Stop using the register mask.
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index b4898a4e0ef..169d5817fd0 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -121,6 +121,8 @@ struct r600_pipe_blend { struct r600_pipe_dsa { struct r600_pipe_state rstate; unsigned alpha_ref; + ubyte valuemask[2]; + ubyte writemask[2]; }; struct r600_vertex_element @@ -183,6 +185,13 @@ struct r600_fence_block { #define R600_CONSTANT_ARRAY_SIZE 256 #define R600_RESOURCE_ARRAY_SIZE 160 +struct r600_stencil_ref +{ + ubyte ref_value[2]; + ubyte valuemask[2]; + ubyte writemask[2]; +}; + struct r600_pipe_context { struct pipe_context context; struct blitter_context *blitter; @@ -364,8 +373,8 @@ void r600_set_so_targets(struct pipe_context *ctx, unsigned num_targets, struct pipe_stream_output_target **targets, unsigned append_bitmask); - - +void r600_set_pipe_stencil_ref(struct pipe_context *ctx, + const struct pipe_stencil_ref *state); void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info); /* |