[Mesa-dev] [PATCH 1/8] i965: Create a macro for setting a dirty bit.
Ian Romanick
idr at freedesktop.org
Wed Aug 27 15:10:38 PDT 2014
On 08/27/2014 02:30 PM, Jordan Justen wrote:
> diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
> index 602275c..7475135 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.h
> +++ b/src/mesa/drivers/dri/i965/brw_context.h
> @@ -241,6 +241,13 @@ struct brw_state_flags {
> GLuint cache;
> };
>
> +
> +/**
> + * Set one of the bits in a field of brw_state_flags.
> + */
> +#define SET_DIRTY_BIT(FIELD, FLAG) brw->state.dirty.FIELD |= (FLAG)
I think this should get the do { ... } while(0) treatment.
More information about the mesa-dev
mailing list