panfrost: Fix gnu-empty-initializer error.

../src/gallium/drivers/panfrost/pan_cmdstream.c:1553:54: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
        union mali_attr varyings[PIPE_MAX_ATTRIBS] = { };
                                                     ^

Fixes: 836686daf3 ("panfrost: Move panfrost_emit_varying_descriptor() to pan_cmdstream.c")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4198>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4198>
This commit is contained in:
Vinson Lee 2020-03-14 18:57:05 -07:00
parent 2d14a8f237
commit 5c3f20a25b
1 changed files with 1 additions and 1 deletions

View File

@ -1550,7 +1550,7 @@ panfrost_emit_varying_descriptor(struct panfrost_batch *batch,
memcpy(trans.cpu, vs->varyings, vs_size);
memcpy(trans.cpu + vs_size, fs->varyings, fs_size);
union mali_attr varyings[PIPE_MAX_ATTRIBS] = { };
union mali_attr varyings[PIPE_MAX_ATTRIBS] = {0};
/* Figure out how many streamout buffers could be bound */
unsigned so_count = ctx->streamout.num_targets;