# spirv: always emit mask constants even if no bits are set · gitcafe/zig

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

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

Visibility: public

Requested revision: cb026c5d599dddc38f34ee93438d52bbffe2f6ad

Requested commit: cb026c5d599dddc38f34ee93438d52bbffe2f6ad

Commit: cb026c5d599dddc38f34ee93438d52bbffe2f6ad

Tree: 75bf3c0edeac952b30eaac1dc4a4ef1d579824f4

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: always emit mask constants even if no bits are set

A parameter like this is not always optional, even if that is
usually implied. SPIR-V tools fail to parse a module with an
OpLoopMerge instruction where the loop control parameter is
left out.

```

## Parents

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

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