Commit Graph

1235 Commits

Author SHA1 Message Date
Eduard-Mihai Burtescu
34e1c90c32 Improve abort/panic messages to be more distinctive. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
883d5aaade Update CHANGELOG. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
70728c7cc1 spirv-builder: update ShaderPanicStrategy::DebugPrintfThenExit docs with newer information. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
24f42f2b42 example-runner-wgpu: enable debugPrintf panic support via --force-spirv-passthru. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
9808cd0309 example-runner-wgpu: fix compute example. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
2ed23d0013 example-runner-wgpu: add --force-spirv-passthru for testing. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
4252427f89 Add debugPrintf-based panic reporting, controlled via spirv_builder::ShaderPanicStrategy. 2023-07-18 22:40:57 +03:00
Eduard-Mihai Burtescu
e830e608eb Update CHANGELOG. 2023-07-15 01:03:08 +03:00
Eduard-Mihai Burtescu
76a1606617 Try to get CI to pass (Cargo 1.70.0 has a dep: bug, cargo deny found a yanked crate). 2023-07-15 01:03:08 +03:00
Eduard-Mihai Burtescu
a389a7993f Remove mentions of 0.4 pre-releases and try making spirv-builder/README.md more readable. 2023-07-15 01:03:08 +03:00
Eduard-Mihai Burtescu
26fcbc0b67 spirv-builder: try getting the docs.rs doc build to succeed (by making rustc_codegen_spirv optional). 2023-07-15 01:03:08 +03:00
Eduard-Mihai Burtescu
ce8c3f8f4c Lower aborts (incl. panics) to "return from entry-point", instead of infinite loops. 2023-07-07 08:33:39 +03:00
Eduard-Mihai Burtescu
b2e5eb7595 spirv-std: prevent MIR inlining of buffer_{load,store}_intrinsic w/ #[inline(never)]. 2023-06-08 15:54:23 +03:00
Eduard-Mihai Burtescu
92b975f53e spirv-std: add non-trivial bodies to buffer_{load,store}_intrinsic to debug them. 2023-06-08 15:54:23 +03:00
Eduard-Mihai Burtescu
dbada91cb7 rustup: update to nightly-2023-05-27. 2023-06-08 15:54:23 +03:00
Eduard-Mihai Burtescu
188aba26fc Remove some now-obsolete #[rustfmt::skip] workarounds for rustfmt bugs. 2023-06-03 10:46:57 +03:00
Eduard-Mihai Burtescu
4a987f3eb0 Add rustfmt.toml with version = "Two" to enable formatting array patterns. 2023-06-03 10:46:57 +03:00
Eduard-Mihai Burtescu
cfaabbab08 Bump version to 0.8.0. 2023-06-02 18:55:33 +03:00
Eduard-Mihai Burtescu
54d98c882f builder: generalize the panic format_args! remover to handle runtime args. 2023-06-02 11:46:02 +03:00
Eduard-Mihai Burtescu
e9cdb9666b rustup: update to nightly-2023-04-15. 2023-06-02 11:46:02 +03:00
Eduard-Mihai Burtescu
87b7d135ab Add CHANGELOG entry for custom OpExtInsts. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
9011856b00 custom_inst: add {Push,Pop}InlinedCallFrame and emit them in the inliner. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
08371d3264 spirt_passes/diagnostics: track uses of global variables more accurately. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
7d99248b29 spirt_passes/diagnostics: also recover zombie Spans from their own attrs. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
0557036fb1 Preserve all intra-function annotations in both specializer and inline. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
ecaefff584 entry: fix entry-point stub spans (to point to the actual fn name). 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
344605fde8 custom_insts: make SetDebugSrcLoc have a range instead of just the starting location. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
c5dcd035b1 Add custom_insts for our own OpExtInsts, and use it for some debuginfo. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
69349b1b9d linker/dce: use FxIndexSet instead of FxHashSet for the "roots" set. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
0160d1dc75 linker/zombies: keep &Instruction for OpLine, instead of extracting operands. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
a42b7edbea Rename decorations to custom_decorations. 2023-06-02 00:32:50 +03:00
Eduard-Mihai Burtescu
a686676e44 Apply suggestions from code review 2023-05-30 10:38:51 +03:00
Joel Nises
51888c78a7 Update changelog with glam requirements 2023-05-30 10:38:51 +03:00
Joel Nises
5903b5af2d Use range for glam dependency 2023-05-30 10:38:51 +03:00
Joel Nises
2061f45d3e Update crates/spirv-std/Cargo.toml
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
2023-05-30 10:38:51 +03:00
Joel Nises
8a835e05d4 Update glam to 0.24 2023-05-30 10:38:51 +03:00
Eduard-Mihai Burtescu
42006190cd Update docs/src/writing-shader-crates.md 2023-05-30 08:02:46 +03:00
shelvacu
62a3f609c6 Book cleanup
Add the line to configure a crate as a dylib and update rust-toolchain file link
2023-05-30 08:02:46 +03:00
Eduard-Mihai Burtescu
7a44fa1e9c Apply suggestions from code review 2023-05-26 19:46:04 +03:00
Tendsin Mende
0db8e0a338 add decoration-id rewrite to inliner 2023-05-26 19:46:04 +03:00
Eduard-Mihai Burtescu
795f433fdd Add missing --no-infer-storage-classes docs to codegen-args.md. 2023-05-20 12:51:55 +03:00
Eduard-Mihai Burtescu
82cfeb59b2 spirv-std/macros: bump syn to a version that supports everything we use. 2023-05-19 15:19:57 +03:00
Eduard-Mihai Burtescu
bc40662167 ci: add custom lint for spirv-std building with -Z minimal-versions. 2023-05-19 15:19:57 +03:00
Eduard-Mihai Burtescu
791be4b5d7 ci: move custom lint from ci.yaml to lint.sh. 2023-05-19 15:19:57 +03:00
Eduard-Mihai Burtescu
98c1f3da6f ci: rename clippy.sh to lint.sh. 2023-05-19 15:19:57 +03:00
Eduard-Mihai Burtescu
2bac7c1bf0 Remove --no-spirt and the old structurizer. 2023-05-19 15:14:33 +03:00
Eduard-Mihai Burtescu
6589f07b6f linker/test: remove non-SPIR-T codepaths. 2023-05-19 15:14:33 +03:00
Eduard-Mihai Burtescu
9b3eee6b45 tests: remove .spirt file suffix and rename variation to default. 2023-05-19 15:14:33 +03:00
Eduard-Mihai Burtescu
34e58aa01f tests: rustfmt all the tests that had e.g. // only-spirt removed. 2023-05-19 15:14:33 +03:00
Eduard-Mihai Burtescu
6b49cb1d51 tests: remove not_spirt test variants. 2023-05-19 15:14:33 +03:00