Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 402afd7

Browse files
committed
Add CHANGELOG entry for --spirt-passes=....
1 parent 8bde624 commit 402afd7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929

3030
## [Unreleased]
3131

32+
### Added ⭐
33+
- [PR#988](https://github.com/EmbarkStudios/rust-gpu/pull/988) added a couple of (highly experimental)
34+
`SPIR-🇹` optimization passes, and `--spirt-passes=...` codegen args as a way to enable them
35+
(see also [the `--spirt-passes` codegen args docs](docs/src/codegen-args.md#--spirt-passes-PASSES))
36+
3237
### Changed 🛠️
3338
- [PR#982](https://github.com/EmbarkStudios/rust-gpu/pull/982) updated toolchain to `nightly-2022-12-18`
3439
- [PR#953](https://github.com/EmbarkStudios/rust-gpu/pull/953) migrated to the Rust 2021 edition, and fixed Rust 2021 support for shader crates to be on par with Rust 2018 (discrepancies having been limited to/caused by `panic!` changes in Rust 2021)

docs/src/codegen-args.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,10 @@ For more information, also see [the `SPIR-🇹` repository](https://github.com/E
151151

152152
### `--spirt-passes PASSES`
153153

154-
Enable additional `SPIR-🇹` passes, as listed in `PASSES` (comma-separated).
155-
_Note: passes that are not already enabled by default are considered experimental
156-
and likely not ready for production use, this flag exists primarily for testing.*
154+
Enable additional `SPIR-🇹` passes, as listed in `PASSES` (comma-separated).
155+
Their implementation can be found in [`rustc_codegen_spirv::linker::spirt_passes`](../../crates/rustc_codegen_spirv/src/linker/spirt_passes).
156+
157+
_Note: passes that are not already enabled by default are considered experimental and likely not ready for production use, this flag exists primarily for testing._
157158

158159
### `--dump-spirt-passes DIR`
159160

0 commit comments

Comments
 (0)