From 9be5a4bc29bb911728bc82718571d771c74602ab Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 10 Feb 2016 15:35:34 -0800 Subject: [PATCH] nir/spirv: Fix handling of OpGroupMemberDecorate We were pulling the member index from the wrong dword --- src/compiler/nir/spirv/spirv_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2