intel: decoder: handle 0 sized structs
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 25 Aug 2018 17:22:00 +0000 (18:22 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 27 Aug 2018 17:33:18 +0000 (18:33 +0100)
commit440a988bd1478bb33dafcbb8575473bc643ae383
tree15b08b78299b8188c34c477ac024311546e4bd98
parente56e600bd36f562ccd654d4d51a32e054ff4352d
intel: decoder: handle 0 sized structs

Gen7.5 has a BLEND_STATE of size 0 which includes a variable length
group. We did not deal with that very well, leading to an endless
loop.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107544
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/common/gen_decoder.c