# spirv: emit nonsemantic info with zig errors · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d1484bf4b96177135183916b95198de25dc63356)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d1484bf4b96177135183916b95198de25dc63356

Requested commit: d1484bf4b96177135183916b95198de25dc63356

Commit: d1484bf4b96177135183916b95198de25dc63356

Tree: 5c61b9dc2dc00d03bdbd851548ebc8ee068afe0b

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: emit nonsemantic info with zig errors

In order to be able to report nice errors in the test runner, and in order
to check SkipZigTest errors, we need to pass the error names to the consumer.
This kind of information can be passed via nonsemantic instructions - using
OpSourceExtension here.

All errors are concatenated into a single string, starting with 'zig_errors:'
for identification, separated by a colon (:). To ensure that we can represent
all error codes, even those which contain a colon, the error names are URI-
escaped. URI-escaping, rather than base64, allows us to see the error names
when viewing disassembled SPIR-V code.

```

## Parents

- [979b4102588fbb0d066060a5a6b6e10f584158ac](https://git.cafe/gitcafe/zig/commit/979b4102588fbb0d066060a5a6b6e10f584158ac?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d1484bf4b96177135183916b95198de25dc63356?format=markdown)
