nir: Stop using designated initializers
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 21 Jan 2015 19:11:03 +0000 (11:11 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Jan 2015 03:55:02 +0000 (19:55 -0800)
commitf88c6a49970ee35d29840e03fd6512a7acd815fb
tree33be37b922ff06f88d963e901fbce145baa94445
parent76086d7120152ebced634875889612d0c40a37bb
nir: Stop using designated initializers

Designated initializers with anonymous unions don't work in MSVC or
GCC < 4.6.  With a couple of constructor methods, we don't need them any
more and the code is actually cleaner.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88467
Reviewed-by: Connor Abbot <cwabbott0@gmail.com>
src/glsl/nir/nir_from_ssa.c
src/glsl/nir/nir_lower_atomics.c
src/glsl/nir/nir_lower_io.c
src/glsl/nir/nir_lower_locals_to_regs.c
src/glsl/nir/nir_lower_system_values.c
src/glsl/nir/nir_lower_vars_to_ssa.c
src/glsl/nir/nir_opt_constant_folding.c
src/glsl/nir/nir_opt_cse.c
src/glsl/nir/nir_opt_peephole_select.c
src/glsl/nir/nir_search.c