summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-07-10 09:00:47 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-07-16 20:31:12 -0700
commite2939dc5a149c7def7669ae5daf8ccdab0fb51c1 (patch)
tree19c7013723ee15bdb5fa1743d2b741e412e7a923 /src
parent1d5ee315536d4563714b35004d9efc1bd6621f53 (diff)
spirv: Bail when we see CounterBuffer decoration
This decoration can be ignored, so we can just skip the next steps. Otherwise we'd have to also handle it in apply_var_decoration. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/spirv/vtn_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index d2d684f11bb..5bdfd758040 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -1630,7 +1630,7 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
break;
case SpvDecorationCounterBuffer:
/* Counter buffer decorations can safely be ignored by the driver. */
- break;
+ return;
default:
break;
}