Commit Graph

688 Commits

Author SHA1 Message Date
XAMPPRocky
2220e88d8f
Update README.md 2021-03-04 19:21:39 +01:00
Philip Allgaier
bffe0760eb
Fix README link to meeting issues (#473) 2021-03-04 19:11:39 +01:00
Erin Power
c38402a1e2 Use version for macros 2021-03-04 18:13:07 +01:00
Erin Power
499bf4cede Version bump to 0.3.0 2021-03-04 17:50:40 +01:00
Eduard-Mihai Burtescu
f9946c0f52
attr: use only rustc's own Target, now that it has all the necessary variants. (#471) 2021-03-04 16:03:54 +00:00
Eduard-Mihai Burtescu
d574fa3737
Reenable clippy's use_self lint (disabled during last rustup) and remove now-unneeded #[allow]s for it. (#470)
* Reenable clippy's `use_self` lint (was disabled during last rustup).

* Remove now-unneeded `#[allow(clippy::use_self)]`.
2021-03-04 16:03:21 +00:00
Eduard-Mihai Burtescu
7723f5db6b
Access the original type's fields through a pointercast, under the Logical addressing model. (#469)
* Defer pointer casts under the Logical addressing model.

* Access the original type's fields through a `pointercast`, under the Logical addressing model.

* Add a test using a `for` loop and a custom `Range`-like iterator.
2021-03-04 15:15:01 +01:00
XAMPPRocky
5cfaa0055b
Update to the latest nightly (#467)
* Update to the latest nightly

* Update to fix clippy lints

* ignore test for now
2021-03-04 14:12:00 +01:00
XAMPPRocky
5446ca3f9f
Revert const generics (#465) 2021-03-03 17:09:31 +02:00
XAMPPRocky
6678f9a49d
Add entry point attribute configuration. (#458)
* Add entrypoint attribute configuration.

* Update with feedback

* Add docs

* fmt

* rm usused_attributes

* other changes

* fmt
2021-03-02 15:30:08 +02:00
XAMPPRocky
830652921c
Update example to use modern rust-gpu (#463)
* Update example to use modern rust-gpu

* Update README.md
2021-03-02 09:14:56 +00:00
Jasper Bekkers
d8e8c75472
Use newly added iter method in rspirv to speed up InstructionTable::new (#460)
* Use newly added `iter` method in rspirv to speed up debug builds of rustc_codegen_spirv by 6s in debug

* cargo update run
2021-03-02 08:51:37 +00:00
Eduard-Mihai Burtescu
6571f45a29 attr: mark #[spirv(...)] attributes as used and remove #[allow(unused_attributes)]. 2021-03-02 08:54:28 +02:00
Eduard-Mihai Burtescu
71254b48fa attr: add a pre-codegen #[spirv(...)] attribute checking pass. 2021-03-02 08:54:28 +02:00
Eduard-Mihai Burtescu
49509e3ccb symbols: cache a Rc<Symbols> per thread. 2021-03-02 08:54:28 +02:00
Eduard-Mihai Burtescu
ccdb9d5a21 symbols: rename #[spirv(image(...))] to #[spirv(image_type(...))]. 2021-03-02 08:54:28 +02:00
Eduard-Mihai Burtescu
9f97704d2e symbols: use Results to keep track of attribute parsing errors. 2021-03-02 08:54:28 +02:00
Eduard-Mihai Burtescu
0253fbec15 parse_attrs: avoid unnecessary allocation. 2021-03-02 08:54:28 +02:00
Jasper Bekkers
2f4c67e8e0
Safeness bug in StorageImage2d::write (#453)
* Safeness bug in StorageImage2d::write

It's pretty easy to see why this is unsafe, if multiple threads write to the same coordinate race-conditions happen.

Ultimately this should be addressed through something like #216 and some higher level abstractions on top of our buffer types, but since we don't have those for now, marking this as unsafe seems to be the only thing we can do for now.

* Remove unsafe {} block for clippy
2021-03-01 15:20:07 +00:00
XAMPPRocky
20341418e4
Fix storage image method restrictions (#455)
* Fix storage image method restrictions

* Update textures.rs

* Update textures.rs
2021-03-01 09:14:54 +00:00
Jesse
98fb0e0a94
docs: Clarify supported MoltenVK version for macOS (#352) 2021-02-26 14:34:21 +01:00
XAMPPRocky
b5a53feddd
Add SPIR-V minimization guide (#451) 2021-02-26 14:33:00 +01:00
lcnr
893912d5b4
fix crate links in readme (#452) 2021-02-26 12:09:10 +00:00
AidanConnelly
df89d273f2
Remove unused dead code in example-runner-ash/main.rs (#449) 2021-02-26 12:58:52 +01:00
XAMPPRocky
2c02c59c1f
Fixes issues related to upgrading to the latest nightly (#447) 2021-02-26 08:19:35 +00:00
XAMPPRocky
57a9ebb797
Add any and all arch instructions (#441) 2021-02-25 17:09:44 +02:00
Ashley Hauck
dafbbd745e
Don't ICE on duplicate definition (#445)
Also give a nice error on using an undefined name
2021-02-23 11:04:55 +01:00
Eduard-Mihai Burtescu
420ca6ae1d
Remove accidentally-commited test = false from rustc_codegen_spirv/Cargo.toml. (#439) 2021-02-22 11:45:07 +00:00
Eduard-Mihai Burtescu
2d948f757e specializer: do not run a DCE pass just before. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
dcf23e2e60 specializer: renumber IDs in expanded functions. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
47cf841209 spirv_std: deprecate load/store/then methods on storage_class::* types. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
0087342992 spirv-std: implement Deref and DerefMut for storage_class wrappers. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
d435c26915 link: add DUMP_POST_LINK to allow dumping the module before spirv-opt runs. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
d4da7f912d spirv_type_constraints: account for OpUCount{Leading,Trailing}ZerosINTEL usage. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
71ef9a25cf specializer: support IndexComposite patterns (for e.g. OpAccessChain). 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
72206042bb specializer: show function names in SPECIALIZER_DEBUG output. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
6f89c8ec54 specializer: deduplicate between InferOperandList's two variants. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
f214587f41 specialize: remove double % after gfx-rs/rspirv#184. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
72fb398232 Remove #[spirv(really_unsafe_ignore_bitcasts)]. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
67746012f5 Infer storage classes using the specializer, replacing special pointer types. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
cb0bd4b04a Introduce a "specializer" pass with "generic"s, inference and monomorphization-like expansion. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
d425409f65 spirv_type_constraints: support storage class equality constraints. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
0c8fe20476 spirv_type_constraints: make the pat! macro more flexible. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
de03fb3859 spirv_type_constraints: don't limit InstSig inputs to value operands. 2021-02-22 12:58:40 +02:00
Eduard-Mihai Burtescu
320bc05626
Use [profile.release.build-override] to optimize build dependencies. (#437) 2021-02-19 16:01:24 +02:00
Eduard-Mihai Burtescu
7da5be3766
Work around linker error by isolating spirv_tools usage to rustc_codegen_spirv. (#436) 2021-02-19 14:46:50 +02:00
Jasper Bekkers
6d2d4a13e6
Inline asm types (#418)
* Add more types for inline asm

* Add basic OpDecorate support to inline asm

* Add khronos ticket link

* Add additional operands support to inline assembly

* Fix unused import warning

* Switch to rspirv git dependency

* Update Cargo.lock

* fmt

* Switch to while-let loop

* Address feedback around `additional_extensions`

* Remove debug code

* Remove un-needed special cases for OpCapability and OpExtension

* Switch back to iterating over all instructions only once, with this one cool trick

* Add test for OpDecorate / varargs

* Fix residual merge error

* Add test for a complex OpImageSample instruction that needs some BitEnums
2021-02-18 14:08:58 +01:00
XAMPPRocky
34261a8905
Add StorageImage with read/write (#434) 2021-02-17 10:15:42 +00:00
Erin Power
77fd6ee4a9 Release 0.3.0-alpha.0
compute-shader@0.3.0-alpha.0
rustc_codegen_spirv@0.3.0-alpha.0
spirv-builder@0.3.0-alpha.0
spirv-std@0.3.0-alpha.0
spirv-std-macros@0.3.0-alpha.0

Generated by cargo-workspaces
2021-02-16 16:19:46 +01:00
XAMPPRocky
5f8accd6c0
Update Cargo.lock (#433) 2021-02-16 15:11:13 +00:00