summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-04-06 21:04:42 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-04-07 11:49:39 -0700
commit2e3b35a1cbe9e1c187b9a284c556821795ebaeea (patch)
treef032020f43fbebc5f8d5dddf0f53beb0f28121b0 /src/glsl
parent1aa5738e666a9534c7e5b46f077327e6d647c64f (diff)
downloadexternal_mesa3d-2e3b35a1cbe9e1c187b9a284c556821795ebaeea.zip
external_mesa3d-2e3b35a1cbe9e1c187b9a284c556821795ebaeea.tar.gz
external_mesa3d-2e3b35a1cbe9e1c187b9a284c556821795ebaeea.tar.bz2
nir/lower_tex_projector: Don't use designated initializers
These don't work in MSVC or in older versions of GCC Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89899 Reviewed-by: Mark Janes <mark.a.janes@intel.com>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir_lower_tex_projector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_lower_tex_projector.c b/src/glsl/nir/nir_lower_tex_projector.c
index 6327b23..6b0e9c3 100644
--- a/src/glsl/nir/nir_lower_tex_projector.c
+++ b/src/glsl/nir/nir_lower_tex_projector.c
@@ -109,7 +109,8 @@ nir_lower_tex_projector_block(nir_block *block, void *void_state)
/* Now move the later tex sources down the array so that the projector
* disappears.
*/
- nir_src dead = {.is_ssa = false, .ssa = NULL};
+ nir_src dead;
+ memset(&dead, 0, sizeof dead);
nir_instr_rewrite_src(&tex->instr, &tex->src[proj_index].src, dead);
memmove(&tex->src[proj_index],
&tex->src[proj_index + 1],