genxml: Fix decoder to print the array element on field members.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 19 May 2017 22:41:31 +0000 (15:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Jun 2017 18:49:46 +0000 (11:49 -0700)
commit12303bd390b24b567505b3af5bd467a0636a2f2a
tree794bad54caea89aa1a5fb7f7d05615d2620e3c52
parent73c21e69d0c132a6d837b40b6a863bdd406085d4
genxml: Fix decoder to print the array element on field members.

Previously we'd print things like:

   0xfffbb568:  0x00010000 : Dword 1
       ReadLength: 0
       ReadLength: 1
   0xfffbb568:  0x00000001 : Dword 1
       ReadLength: 1
       ReadLength: 0

instead of the more obvious:

   0xfffbb568:  0x00010000 : Dword 1
       ReadLength[0]: 0
       ReadLength[1]: 1
   0xfffbb568:  0x00000001 : Dword 1
       ReadLength[2]: 1
       ReadLength[3]: 0

(Yes, the ralloc context here is bogus - the decoder leaks just about
everything.  We need to use proper ralloc contexts someday...)

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c