From: Jason Ekstrand Date: Wed, 10 Feb 2016 23:35:34 +0000 (-0800) Subject: nir/spirv: Fix handling of OpGroupMemberDecorate X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9be5a4bc29bb911728bc82718571d771c74602ab;p=mesa.git nir/spirv: Fix handling of OpGroupMemberDecorate We were pulling the member index from the wrong dword --- diff --git a/src/compiler/nir/spirv/spirv_to_nir.c b/src/compiler/nir/spirv/spirv_to_nir.c index 544251f5a1f..6848c0207c8 100644 --- a/src/compiler/nir/spirv/spirv_to_nir.c +++ b/src/compiler/nir/spirv/spirv_to_nir.c @@ -363,7 +363,7 @@ vtn_handle_decoration(struct vtn_builder *b, SpvOp opcode, if (opcode == SpvOpGroupDecorate) { dec->scope = VTN_DEC_DECORATION; } else { - dec->scope = VTN_DEC_STRUCT_MEMBER0 + *(w++); + dec->scope = VTN_DEC_STRUCT_MEMBER0 + *(++w); } /* Link into the list */