Re: [Mesa-dev] [PATCH 1/2] genxml: Fix python crash when no dwords are found.

2017-04-07 Thread Dylan Baker
Quoting Rafael Antognolli (2017-04-07 09:52:16) > If the 'dwords' dict is empty, max(dwords.keys()) throws an exception. > This case could happen when we have an instruction that is only an array > of other structs, with variable length. > > Signed-off-by: Rafael Antognolli > --- > src/intel/gen

[Mesa-dev] [PATCH 1/2] genxml: Fix python crash when no dwords are found.

2017-04-07 Thread Rafael Antognolli
If the 'dwords' dict is empty, max(dwords.keys()) throws an exception. This case could happen when we have an instruction that is only an array of other structs, with variable length. Signed-off-by: Rafael Antognolli --- src/intel/genxml/gen_pack_header.py | 2 +- 1 file changed, 1 insertion(+),