Mesa (master): spirv: Fix the MSVC build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 12 09:02:02 UTC 2019


Module: Mesa
Branch: master
Commit: 0c7e0c5599af71d4a840305394d3b2d926eef934
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c7e0c5599af71d4a840305394d3b2d926eef934

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Mon Nov 11 09:37:50 2019 -0600

spirv: Fix the MSVC build

Fixes: 9cc4c2c91649b "spirv: Add a vtn_decorate_pointer helper"
Tested-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>

---

 src/compiler/spirv/vtn_variables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 944d1f006d6..4a9e031a9f8 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -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




More information about the mesa-commit mailing list