[Mesa-dev] [RFC] Gallium debug options printing

Jakob Bornecrantz wallbraker at gmail.com
Fri Apr 23 06:58:10 PDT 2010


On Fri, Apr 23, 2010 at 2:51 PM, canbaby <canbaby at 21cn.com> wrote:
> On Thu, 2010-04-22 at 22:28 +0100, Jakob Bornecrantz wrote:
>> +#define DEBUG_GET_ONCE_FLAGS_OPTION(sufix, name, flags, dfault) \
>> +static unsigned long \
>> +debug_get_option_ ## sufix (void) \
>> +{ \
>> +   static boolean first = TRUE; \
>> +   unsigned long value; \
> should be static
>> +   if (first && !(first = FALSE)) \
>> +      value = debug_get_num_option(name, flags, dfault); \
>> +   return value; \
>> +}
>> +
>

Thanks, Michal also told me that I'm using the wrong
debug_get_*_option in flags, I have fixed that.

Cheers Jakob.


More information about the mesa-dev mailing list