aubinator: Store enum textual name in iter->value.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Mar 2017 03:59:08 +0000 (20:59 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Mar 2017 18:20:51 +0000 (11:20 -0700)
commit2c6c760a4b41f836bb84618b3124fd6356c285dd
treea229b083bb3b161e1f2efbb89c227b3a3ae3eaee
parenta6e212440278df2bb0766a5cf745935d94809144
aubinator: Store enum textual name in iter->value.

gen_field_iterator_next() produces a string representing the value of
the field.  For enum values, it also produced a separate "description"
string containing the textual name of the enum.

The only caller of this function combines the two, printing enums as
"<numeric value> (<texture enum name>)".  We may as well just store
that in item->value directly, eliminating the description field, and
a layer of wrapping.

v2: Use non-overlapping source and destination strings in snprintf.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator.c
src/intel/tools/decoder.c
src/intel/tools/decoder.h