From: Brian Paul Date: Mon, 24 Oct 2016 20:42:09 +0000 (-0700) Subject: tgsi: trivial build fix for MSVC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88a618ce86602e962343683eacea60ebdd20e4e1;p=mesa.git tgsi: trivial build fix for MSVC Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index cbb3eec07fb..aeb326a8bfe 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -370,7 +370,7 @@ scan_instruction(struct tgsi_shader_info *info, if (fullinst->Instruction.Texture) { for (i = 0; i < fullinst->Texture.NumOffsets; i++) { - struct tgsi_full_src_register src = {}; + struct tgsi_full_src_register src = {{0}}; src.Register.File = fullinst->TexOffsets[i].File; src.Register.Index = fullinst->TexOffsets[i].Index;