diff options
author | Keith Whitwell <[email protected]> | 2010-08-27 17:30:07 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-09-07 13:22:55 +0100 |
commit | c512ba88a7e33f14b86feb9c0aaf1ebed5f50629 (patch) | |
tree | d5009fc3e772c3926faa4811c3dd4207378952f5 /src/gallium/drivers/llvmpipe/lp_rast.h | |
parent | 18452c1e87f79327fbd5f27478028b481ee72a5d (diff) |
llvmpipe: clean up deferred zstencil clears
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h index 9d3deb4e886..d6e53f31aa1 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.h +++ b/src/gallium/drivers/llvmpipe/lp_rast.h @@ -88,10 +88,6 @@ struct lp_rast_shader_inputs { const struct lp_rast_state *state; }; -struct lp_rast_clearzs { - unsigned clearzs_value; - unsigned clearzs_mask; -}; struct lp_rast_plane { /* one-pixel sized trivial accept offsets for each plane */ @@ -151,7 +147,10 @@ union lp_rast_cmd_arg { } triangle; const struct lp_rast_state *set_state; uint8_t clear_color[4]; - const struct lp_rast_clearzs *clear_zstencil; + struct { + unsigned value; + unsigned mask; + } clear_zstencil; struct lp_fence *fence; struct llvmpipe_query *query_obj; }; @@ -195,13 +194,15 @@ lp_rast_arg_fence( struct lp_fence *fence ) static INLINE union lp_rast_cmd_arg -lp_rast_arg_clearzs( const struct lp_rast_clearzs *clearzs ) +lp_rast_arg_clearzs( unsigned value, unsigned mask ) { union lp_rast_cmd_arg arg; - arg.clear_zstencil = clearzs; + arg.clear_zstencil.value = value; + arg.clear_zstencil.mask = mask; return arg; } + static INLINE union lp_rast_cmd_arg lp_rast_arg_null( void ) { |