aubinator: Make the iterator store a pointer to structure descriptions.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Mar 2017 04:22:20 +0000 (21:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Mar 2017 18:20:51 +0000 (11:20 -0700)
commitb2c0c1d9a5c6b1dd55d4e06f504e1ce9fe823c32
tree2f32275c7dad0f46fffdb93f91dab569b1cad170
parenta1aa78cb45cee5ba6fa9ecf1266760cdbb51f5f3
aubinator: Make the iterator store a pointer to structure descriptions.

When the iterator encounters a structure field, it now looks up the
gen_group for that structure definition and saves a pointer to it.

This lets us drop a lot of ridiculous code in the caller, which looked
at item->value (<struct NAME dword>), strtok'd the structure name back
out, and looked it up itself.

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