spirv: Fix the MSVC build
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 11 Nov 2019 15:37:50 +0000 (09:37 -0600)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 12 Nov 2019 08:34:55 +0000 (08:34 +0000)
Fixes: 9cc4c2c91649b "spirv: Add a vtn_decorate_pointer helper"
Tested-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/spirv/vtn_variables.c

index 944d1f006d6966af8cca5a2a9a73efa1a5ed6169..4a9e031a9f868d7eeede3825c3a535d45209ecac 100644 (file)
@@ -50,7 +50,7 @@ static struct vtn_pointer*
 vtn_decorate_pointer(struct vtn_builder *b, struct vtn_value *val,
                      struct vtn_pointer *ptr)
 {
-   struct vtn_pointer dummy = { };
+   struct vtn_pointer dummy = { .access = 0 };
    vtn_foreach_decoration(b, val, ptr_decoration_cb, &dummy);
 
    /* If we're adding access flags, make a copy of the pointer.  We could