panfrost: Fix gnu-empty-initializer build errors.
authorVinson Lee <vlee@freedesktop.org>
Thu, 28 Nov 2019 07:37:00 +0000 (23:37 -0800)
committerVinson Lee <vlee@freedesktop.org>
Fri, 29 Nov 2019 00:12:38 +0000 (16:12 -0800)
Fixes: a24d6fbae60c ("meson: Add -Werror=gnu-empty-initializer to MSVC compat args")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_blit.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_mfbd.c

index a9bad17bd45cf4b37233cd2da71a626eb0ca4de7..361e39bd8a2426f9c7644e32e2f240ba44e8360d 100644 (file)
@@ -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);
 
index b1006f81ec9dcdf1f9c62ac0333edc08a38fe1df..0c95ea6631c3c77aa375d7812bba2c1d8639eaf2 100644 (file)
@@ -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)
index 10a27c9d8dd51ec6f8cde7b7c276482d5e1c0d14..4cc32dee5c2fd219883dec2b7107f625bda51d3b 100644 (file)
@@ -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 */