From cb619a3c9a49d27f60a2a616f719af17bc9f54d2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 30 Mar 2018 11:09:07 -0600 Subject: nir/spirv: fix MSVC syntax error in vtn_handle_texture() Reviewed-by: Neil Roberts --- src/compiler/spirv/spirv_to_nir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 2550ef0a233..72ab426e805 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -2086,8 +2086,9 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode, (*p++) = vtn_tex_src(b, w[idx++], nir_tex_src_offset); if (operands & SpvImageOperandsConstOffsetsMask) { + nir_tex_src none = {0}; gather_offsets = vtn_ssa_value(b, w[idx++]); - (*p++) = (nir_tex_src){}; + (*p++) = none; } if (operands & SpvImageOperandsSampleMask) { -- cgit v1.2.3