From: Brian Paul Date: Fri, 30 Mar 2018 17:09:07 +0000 (-0600) Subject: nir/spirv: fix MSVC syntax error in vtn_handle_texture() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb619a3c9a49d27f60a2a616f719af17bc9f54d2;p=mesa.git nir/spirv: fix MSVC syntax error in vtn_handle_texture() Reviewed-by: Neil Roberts --- 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) {