projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a859ec
)
gallium: make valuemask/writemask in pipe_stencil_state bitfield members
author
Roland Scheidegger
<sroland@vmware.com>
Tue, 9 Feb 2010 20:26:35 +0000
(21:26 +0100)
committer
Roland Scheidegger
<sroland@vmware.com>
Tue, 9 Feb 2010 20:26:35 +0000
(21:26 +0100)
More consistent with other state data, might allow some compilers to pack
the struct better (doesn't matter for gcc).
src/gallium/include/pipe/p_state.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_state.h
b/src/gallium/include/pipe/p_state.h
index 80e02ae70e335672e725980f4e27bc83b38f435d..23748acbdc293031c32b98213caa72b5c11f3af0 100644
(file)
--- 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 */
- u
byte valuemask
;
- u
byte writemask
;
+ u
nsigned valuemask:8
;
+ u
nsigned writemask:8
;
};