From: Vinson Lee Date: Thu, 28 Nov 2019 07:37:00 +0000 (-0800) Subject: panfrost: Fix gnu-empty-initializer build errors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de2e5f6f540de7e7d2e5208937a6f8fc17ace547;p=mesa.git 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 --- 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 */