Commit Graph

1204 Commits

Author SHA1 Message Date
Eduard-Mihai Burtescu
85e4df3136 Include identifying information (e.g. crate names) in --dump-* filenames. 2022-12-13 06:18:03 +02:00
Eduard-Mihai Burtescu
6fb35ffeeb outputs: ⋯.spv⋯.spv.json, ⋯.spv.dir/⋯⋯.spvs/⋯.spv (or ⋯.spv). 2022-12-12 17:15:12 +02:00
Eduard-Mihai Burtescu
3fca36ecb2 tests: run both with and without --spirt. 2022-12-12 17:14:35 +02:00
Eduard-Mihai Burtescu
8535bb3bf1 Minimally integrate SPIR-T (opt-in via RUSTGPU_CODEGEN_ARGS=--spirt). 2022-12-12 17:14:35 +02:00
Eduard-Mihai Burtescu
78130e1151 tests: clean up the structopt usage slightly. 2022-12-09 08:48:53 -08:00
Eduard-Mihai Burtescu
d9d9bd2936 Retroactively filled in CHANGELOG.md entries for all releases after 0.3.0. 2022-12-09 18:47:37 +02:00
Eduard-Mihai Burtescu
e5740d4fae Migrate CHANGELOG.md to a more "Embark-standard" style (w/ PR links). 2022-12-09 18:47:37 +02:00
Eduard-Mihai Burtescu
32db2b4c3f linker/test: enable DCE (adding new Exports where necessary). 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
12172b3f17 linker/test: keep Exports around, even after import->export resolution. 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
00bb9be12d linker/test: add in the missing (mandatory) OpMemoryModel instructions. 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
0274eb9500 linker/test: "desugar" deprecated "decoration groups" (not supported by SPIR-T). 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
fb393a9566 linker/test: add #[track_caller] to without_header_eq. 2022-12-09 12:53:05 +02:00
Eduard-Mihai Burtescu
eea44854a7 linker/inline: handle OpPhis. 2022-12-09 11:50:01 +02:00
Eduard-Mihai Burtescu
b3c280424c Migrate rustc_codegen_spirv env vars to codegen args. 2022-12-09 11:46:27 +02:00
Eduard-Mihai Burtescu
47d5577a93 spirv-builder: add RUSTGPU_RUSTFLAGS/RUSTGPU_CODEGEN_ARGS env vars. 2022-12-09 11:46:27 +02:00
Eduard-Mihai Burtescu
ab69706640 CodegenArgs::parse: support --help to show an "usage" message. 2022-12-09 11:46:27 +02:00
Eduard-Mihai Burtescu
8d53076a13 CodegenArgs::parse: replace optflagopt (-X and -X=Y) with optflag (only -X). 2022-12-09 11:46:27 +02:00
Eduard-Mihai Burtescu
11c7aaccaa Bump bytemuck and update deny.toml for syn's move to unicode-ident. 2022-12-06 01:30:59 +02:00
Sylvester Hesp
8bd42bcc3a Get rid of run_in_thread_pool_with_globals altogether, 2022-12-02 01:58:11 -08:00
Sylvester Hesp
94a752d9db Format fixes 2022-12-02 01:58:11 -08:00
Sylvester Hesp
17523e06d7 Fix for run_in_thread_pool_with_globals being no longer public 2022-12-02 01:58:11 -08:00
Sylvester Hesp
f0aace570b Linter fixes 2022-12-02 01:58:11 -08:00
Sylvester Hesp
0a527f0990 Added changelog 2022-12-02 01:58:11 -08:00
Sylvester Hesp
fb7e13cdeb Update to nightly-2022-10-29 2022-12-02 01:58:11 -08:00
Eduard-Mihai Burtescu
d000e9699b Use Spans to detect "system crate"s, for error deferral (zombie) purposes. 2022-12-01 17:24:48 +02:00
Sylvester Hesp
ccf920d54f Actually use FnAbi in the call 🙄 2022-11-30 09:38:54 -08:00
Sylvester Hesp
6f325acec0 More linter fixes 2022-11-30 09:38:54 -08:00
Sylvester Hesp
1ac63d3a49 Added passing of FnAbi 2022-11-30 09:38:54 -08:00
Sylvester Hesp
f2ae220678 Added changelog 2022-11-30 09:38:54 -08:00
Sylvester Hesp
25cb7bf7e4 Linter fix 2022-11-30 09:38:54 -08:00
Sylvester Hesp
fc19ab58fb Update to nightly-2022-10-15 2022-11-30 09:38:54 -08:00
Eduard-Mihai Burtescu
dfd285e735 linker/test: create Session manually to inject a custom diagnostic writer. 2022-11-30 09:15:12 -08:00
Eduard-Mihai Burtescu
9d639d3ad5 linker/test: catch FatalErrors to ensure they print any error output at all. 2022-11-30 09:15:12 -08:00
Eduard-Mihai Burtescu
acb05d3799 Arena-allocate slices to replace Vecs in SpirvType and SpirvConst. 2022-11-30 17:03:58 +02:00
Eduard-Mihai Burtescu
1000dece4a symbols: avoid using to_ident_string when {}-formatting works. 2022-11-30 17:03:58 +02:00
Eduard-Mihai Burtescu
d76211384e Replace bimap dependency with a more efficient pair of maps. 2022-11-30 17:03:58 +02:00
Eduard-Mihai Burtescu
7a170d3f78 linker/zombies: stop compilation after zombie errors. 2022-11-30 17:02:10 +02:00
Eduard-Mihai Burtescu
a9ede2ed9f linker/duplicates: handle all decorations instead of special-casing zombies. 2022-11-30 17:01:20 +02:00
Eduard-Mihai Burtescu
f78b23b926 examples/runner/cpu: switch to workspace inheritance. 2022-11-30 16:59:49 +02:00
Eduard-Mihai Burtescu
6eebe6cb91 Apply suggestions from code review (CHANGELOG emojis)
Co-authored-by: Sylvester Hesp <github@oisyn.nl>
2022-11-28 07:18:06 -08:00
Eduard-Mihai Burtescu
5836b83415 Remove fn/closure #[spirv(unroll_loops)] attribute. 2022-11-28 07:18:06 -08:00
BeastLe9enD
4452da80f5 Add rint & rintf libm intrinsics 2022-11-28 16:55:32 +02:00
Sylvester Hesp
d3a868027d Added ending newline to Cargo.toml 2022-11-24 08:15:36 -08:00
Sylvester Hesp
e087a5267f Upgraded compiletest_rs to 0.9.0 2022-11-24 08:15:36 -08:00
Marijn Suijten
2094a71667 CI/android: Select wgpu example by package name instead of manifest path
Specifying a manifest path still allows `cargo` and `cargo-apk` to find the workspace a package belongs to. We've decided that properly implementing [package selection](https://doc.rust-lang.org/cargo/commands/cargo-build.html#package-selection) between `cargo-apk` and `cargo-subcommand` would be [nontrivial](https://github.com/dvc94ch/cargo-subcommand/pull/23/files#diff-23af5356f6001cd3993cd3c801fb7716ea02d1e504081b9fb569332db6107e80R53-R57) and ended up requiring the package to be selected explicitly via `-p` for now.
2022-11-24 07:52:12 -08:00
Eduard-Mihai Burtescu
85cd9df55a default.nix: add wayland runtime deps. 2022-11-24 17:46:09 +02:00
Sylvester Hesp
5e7a0755c2 Also applied default-features=false to spirv-builder 2022-11-22 07:43:06 -08:00
Sylvester Hesp
e7df2feb27 Applied workspace inheritance 2022-11-22 07:43:06 -08:00
Sylvester Hesp
39850120ae Update to 0.4.0-alpha.17
* Specified exact versioning for crates within rust-gpu
* Fixed spirv-std referring to an older version of spirv-std-macros
2022-11-09 15:07:38 +01:00
Sylvester Hesp
c248806bf0 Updated versions to 0.4.0-alpha.16 2022-11-04 20:39:07 +02:00