diff options
author | Brian Paul <[email protected]> | 2016-01-06 15:45:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-01-06 15:53:47 -0700 |
commit | b59fad8478787665b7dc1618ca2a8b8df02feade (patch) | |
tree | 364f7d90dd50018bfa945cc290a99e3abfca74a2 /src/mesa/state_tracker | |
parent | 85444ab08b8bd0f291101acf42620ffbaa8c77fb (diff) |
st/mesa: minor clean-ups in st_atom.c
Remove useless comment. Reformat code.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_atom.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c index 337213c1b80..03097225bb2 100644 --- a/src/mesa/state_tracker/st_atom.c +++ b/src/mesa/state_tracker/st_atom.c @@ -95,27 +95,26 @@ void st_destroy_atoms( struct st_context *st ) } -/*********************************************************************** - */ -static GLboolean check_state( const struct st_state_flags *a, - const struct st_state_flags *b ) +static bool +check_state(const struct st_state_flags *a, const struct st_state_flags *b) { - return ((a->mesa & b->mesa) || - (a->st & b->st)); + return (a->mesa & b->mesa) || (a->st & b->st); } -static void accumulate_state( struct st_state_flags *a, - const struct st_state_flags *b ) + +static void +accumulate_state(struct st_state_flags *a, const struct st_state_flags *b) { a->mesa |= b->mesa; a->st |= b->st; } -static void xor_states( struct st_state_flags *result, - const struct st_state_flags *a, - const struct st_state_flags *b ) +static void +xor_states(struct st_state_flags *result, + const struct st_state_flags *a, + const struct st_state_flags *b) { result->mesa = a->mesa ^ b->mesa; result->st = a->st ^ b->st; @@ -241,6 +240,3 @@ void st_validate_state( struct st_context *st ) memset(state, 0, sizeof(*state)); } - - - |