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.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev