From e2939dc5a149c7def7669ae5daf8ccdab0fb51c1 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Wed, 10 Jul 2019 09:00:47 -0700 Subject: [PATCH] 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 --- src/compiler/spirv/vtn_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2