nir/linker: fix msvc build
authorRoland Scheidegger <sroland@vmware.com>
Wed, 4 Jul 2018 01:44:50 +0000 (03:44 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 5 Jul 2018 07:27:05 +0000 (09:27 +0200)
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
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/gl_nir_link_atomics.c

index da6f5107c9aa107e54d32336c906d1ad7055d34a..887ac1b9d0fa35155e7259fe9a43867f1be3ede5 100644 (file)
@@ -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);