nir/builder: Don't use designated initializers
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 21 Sep 2015 15:22:12 +0000 (08:22 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 21 Sep 2015 17:41:43 +0000 (10:41 -0700)
commit46362db4a6bb6db64727d3adcb16ca8f32aa70fb
treeac53e56039728af880e0e71d8808d5890669a86f
parentd513388c8aa1ef4edb937e97a75b953f1abe16f3
nir/builder: Don't use designated initializers

Designated initializers are not allowed in C++ (not even C++11).  Since
nir_lower_samplers is now using nir_builder, and nir_lower_samplers is in
C++, this breaks the build on some compilers.  Aparently, GCC 5 allows it
in some limited extent because mesa still builds on my system without this
patch.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92052
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir_builder.h