nir/spirv: Fix handling of OpGroupMemberDecorate

We were pulling the member index from the wrong dword
This commit is contained in:
Jason Ekstrand 2016-02-10 15:35:34 -08:00
parent ac04c6de2c
commit 9be5a4bc29

View file

@ -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 */