mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
st/mesa: minor clean-ups in st_atom.c
Remove useless comment. Reformat code.
This commit is contained in:
parent
85444ab08b
commit
b59fad8478
1 changed files with 10 additions and 14 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue