From: Caio Marcelo de Oliveira Filho Date: Wed, 10 Jul 2019 16:00:47 +0000 (-0700) Subject: spirv: Bail when we see CounterBuffer decoration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2939dc5a149c7def7669ae5daf8ccdab0fb51c1;p=mesa.git 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 --- 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; }