summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-10 15:35:34 -0800
committerJason Ekstrand <[email protected]>2016-02-10 15:36:42 -0800
commit9be5a4bc29bb911728bc82718571d771c74602ab (patch)
treecc0a6cab97830a7359570d9775ff57f48dbe27a3 /src
parentac04c6de2c3abd2def23c43ede2458e4a61f7f6d (diff)
nir/spirv: Fix handling of OpGroupMemberDecorate
We were pulling the member index from the wrong dword
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/spirv/spirv_to_nir.c2
1 files changed, 1 insertions, 1 deletions
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 */