[Mesa-dev] [PATCH] nir/lower_tex_projector: Don't use designated initializers
Mark Janes
mark.a.janes at intel.com
Tue Apr 7 10:50:25 PDT 2015
Reviewed-by: Mark Janes <mark.a.janes at intel.com>
Jason Ekstrand <jason at jlekstrand.net> writes:
> These don't work in MSVC or in older versions of GCC
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89899
> Cc: Eric Anholt <eric at anholt.net>
> ---
> src/glsl/nir/nir_lower_tex_projector.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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],
> --
> 2.3.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list