[Mesa-dev] [PATCH] nir/linker: fix msvc build
Timothy Arceri
tarceri at itsqueeze.com
Wed Jul 4 03:02:47 UTC 2018
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
On 04/07/18 11:51, sroland at vmware.com wrote:
> From: Roland Scheidegger <sroland at vmware.com>
>
> Empty initializer braces aren't valid c (it's a gnu extension, and
> it's valid in c++).
> Hopefully fixes appveyor / msvc build...
>
> Fixes 6677e131b806b10754adcb7cf3f427a7fcc2aa09
> ---
> src/compiler/glsl/gl_nir_link_atomics.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compiler/glsl/gl_nir_link_atomics.c b/src/compiler/glsl/gl_nir_link_atomics.c
> index da6f5107c9..887ac1b9d0 100644
> --- a/src/compiler/glsl/gl_nir_link_atomics.c
> +++ b/src/compiler/glsl/gl_nir_link_atomics.c
> @@ -175,7 +175,7 @@ gl_nir_link_assign_atomic_counter_resources(struct gl_context *ctx,
> struct gl_shader_program *prog)
> {
> unsigned num_buffers;
> - unsigned num_atomic_buffers[MESA_SHADER_STAGES] = { };
> + unsigned num_atomic_buffers[MESA_SHADER_STAGES] = {0};
> struct active_atomic_buffer *abs =
> find_active_atomic_counters(ctx, prog, &num_buffers);
>
>
More information about the mesa-dev
mailing list