From de2e5f6f540de7e7d2e5208937a6f8fc17ace547 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 27 Nov 2019 23:37:00 -0800 Subject: [PATCH] panfrost: Fix gnu-empty-initializer build errors. Fixes: a24d6fbae60c ("meson: Add -Werror=gnu-empty-initializer to MSVC compat args") Signed-off-by: Vinson Lee Reviewed-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_blit.c | 2 +- src/gallium/drivers/panfrost/pan_context.c | 4 ++-- src/gallium/drivers/panfrost/pan_mfbd.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_blit.c b/src/gallium/drivers/panfrost/pan_blit.c index a9bad17bd45..361e39bd8a2 100644 --- a/src/gallium/drivers/panfrost/pan_blit.c +++ b/src/gallium/drivers/panfrost/pan_blit.c @@ -106,7 +106,7 @@ void panfrost_blit_wallpaper(struct panfrost_context *ctx, struct pipe_box *box) { struct panfrost_batch *batch = ctx->wallpaper_batch; - struct pipe_blit_info binfo = { }; + struct pipe_blit_info binfo = {0}; panfrost_blitter_save(ctx, ctx->blitter_wallpaper); diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index b1006f81ec9..0c95ea6631c 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -58,7 +58,7 @@ static struct midgard_tiler_descriptor panfrost_emit_midg_tiler(struct panfrost_batch *batch, unsigned vertex_count) { struct panfrost_screen *screen = pan_screen(batch->ctx->base.screen); - struct midgard_tiler_descriptor t = {}; + struct midgard_tiler_descriptor t = {0}; unsigned height = batch->key.height; unsigned width = batch->key.width; @@ -1959,7 +1959,7 @@ update_so_info(struct pipe_stream_output_info *so_info, uint64_t outputs_written) { uint64_t so_outputs = 0; - uint8_t reverse_map[64] = {}; + uint8_t reverse_map[64] = {0}; unsigned slot = 0; while (outputs_written) diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c index 10a27c9d8dd..4cc32dee5c2 100644 --- a/src/gallium/drivers/panfrost/pan_mfbd.c +++ b/src/gallium/drivers/panfrost/pan_mfbd.c @@ -357,8 +357,8 @@ mali_ptr panfrost_mfbd_fragment(struct panfrost_batch *batch, bool has_draws) { struct bifrost_framebuffer fb = panfrost_emit_mfbd(batch, has_draws); - struct bifrost_fb_extra fbx = {}; - struct bifrost_render_target rts[4] = {}; + struct bifrost_fb_extra fbx = {0}; + struct bifrost_render_target rts[4] = {0}; /* We always upload at least one dummy GL_NONE render target */ -- 2.30.2