From: Roland Scheidegger Date: Tue, 9 Feb 2010 20:26:35 +0000 (+0100) Subject: gallium: make valuemask/writemask in pipe_stencil_state bitfield members X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c59446a4930ec93e55f7cd3d1fffe46585cbe506;p=mesa.git gallium: make valuemask/writemask in pipe_stencil_state bitfield members More consistent with other state data, might allow some compilers to pack the struct better (doesn't matter for gcc). --- diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 80e02ae70e3..23748acbdc2 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -199,8 +199,8 @@ struct pipe_stencil_state unsigned fail_op:3; /**< PIPE_STENCIL_OP_x */ unsigned zpass_op:3; /**< PIPE_STENCIL_OP_x */ unsigned zfail_op:3; /**< PIPE_STENCIL_OP_x */ - ubyte valuemask; - ubyte writemask; + unsigned valuemask:8; + unsigned writemask:8; };