spirv: Bail when we see CounterBuffer decoration
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 10 Jul 2019 16:00:47 +0000 (09:00 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 17 Jul 2019 03:31:12 +0000 (20:31 -0700)
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 <jason@jlekstrand.net>
src/compiler/spirv/vtn_variables.c

index d2d684f11bb6d10b670cdd0550fcc68472ed159d..5bdfd758040531149804addbb65b2a1a83f710b3 100644 (file)
@@ -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;
    }