genxml: Fix gen_pack_header.py crash when field type is invalid.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 21 Apr 2017 22:11:17 +0000 (15:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Apr 2017 22:14:12 +0000 (15:14 -0700)
commit6a40ccec4b232fc04edd9eb3c047f949e4422612
treea3b19cb619d9f2d055092313d53d04b12999f298
parent9670124e3157636e5325fc0d3302375709403d0e
genxml: Fix gen_pack_header.py crash when field type is invalid.

Just return earlier in that case. Also set prefix to an empty string, so
we don't get to use it undefined.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/genxml/gen_pack_header.py