[Mesa-dev] [PATCH] spirv: s/{}/{0}/ initializer to fix MSVC build
Erik Faye-Lund
erik.faye-lund at collabora.com
Tue Nov 12 08:44:12 UTC 2019
There's already this one:
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2695
On Mon, 2019-11-11 at 16:46 -0700, Brian Paul wrote:
> Trivial.
> ---
> 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 944d1f0..37ad4f2 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 = {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-dev
mailing list