nir: fix generated nir_intrinsics.c for MSVC
authorRob Clark <robdclark@gmail.com>
Tue, 27 Mar 2018 18:52:55 +0000 (14:52 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 27 Mar 2018 19:01:11 +0000 (15:01 -0400)
commit16581904b0b325c8b6d9abe81462c33e6b99a644
treec7e5109ecdb86ec7aa214d13585343b07a1d944d
parenteda2f58d15f2fe99e7c868d37280e19c70ecb511
nir: fix generated nir_intrinsics.c for MSVC

Apparently it is not happy about things like: .foo = {}

So skip over initializers for empty lists.

Fixes: 76dfed8ae2d5c6c509eb2661389be3c6a25077df
Reported-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_intrinsics_c.py