tgsi: trivial build fix for MSVC
authorBrian Paul <brianp@vmware.com>
Mon, 24 Oct 2016 20:42:09 +0000 (13:42 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 24 Oct 2016 21:16:07 +0000 (14:16 -0700)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c

index cbb3eec07fbabafb21521871943d105fd40ac216..aeb326a8bfee7423652e2aeb20c141d858f6f831 100644 (file)
@@ -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;