Re: [Mesa-dev] [PATCH 2/2] tgsi: consolidate TGSI string arrays in new tgsi_strings.h

2012-01-05 Thread Brian Paul
On 01/05/2012 03:29 AM, Dave Airlie wrote: On Wed, Jan 4, 2012 at 4:00 PM, Brian Paul wrote: There was some duplication between the tgsi_dump.c and tgsi_text.c files. Also use some static assertions to help catch errors when adding new TGSI values. I'm not 100% sure, but if you include tgsi_

Re: [Mesa-dev] [PATCH 2/2] tgsi: consolidate TGSI string arrays in new tgsi_strings.h

2012-01-05 Thread Dave Airlie
On Wed, Jan 4, 2012 at 4:00 PM, Brian Paul wrote: > There was some duplication between the tgsi_dump.c and tgsi_text.c > files.  Also use some static assertions to help catch errors when > adding new TGSI values. I'm not 100% sure, but if you include tgsi_strings.h into two C files will you get t

[Mesa-dev] [PATCH 2/2] tgsi: consolidate TGSI string arrays in new tgsi_strings.h

2012-01-04 Thread Brian Paul
There was some duplication between the tgsi_dump.c and tgsi_text.c files. Also use some static assertions to help catch errors when adding new TGSI values. --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c |1 + src/gallium/auxiliary/tgsi/tgsi_dump.c | 139 + src