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 Result
s 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
Ashley Hauck
0285edb860
simd_types_indirect: false ( #431 )
...
also fix bug in abi.rs - vectors are always memory, never immediate
2021-02-15 14:59:55 +00:00
Henno
45f7a36d66
Fix wgpu-runner validation errors on minimize ( #424 )
...
Vulkan swap chains must have non-zero dimensions, this adds a check for that during swap chain resizing and does not create one if it would be invalid.
2021-02-15 15:48:29 +01:00
Ashley Hauck
8fe8e88a06
Update docs for the Image storage class ( #426 )
2021-02-15 08:32:28 +00:00
Ashley Hauck
0b75728664
rm .mergify.yml ( #422 )
2021-02-12 13:28:19 +00:00
Ashley Hauck
56067de909
Support const args in asm! ( #421 )
2021-02-12 14:05:31 +01:00
Ashley Hauck
edbbf387dd
Disable mergify ( #420 )
...
As discussed in #rust-gpu on discord, it's more pain than it's worth
2021-02-12 10:10:26 +00:00
XAMPPRocky
c10a6c0747
Add vector_insert_dynamic ( #411 )
...
* Add vector_insert_dynamic and copy_object
* Update arch.rs
* Update basic.rs
* Update arch.rs
* Update spirv_type_constraints.rs
2021-02-11 15:18:52 +00:00
Eduard-Mihai Burtescu
2f9d4d8e0d
Add a missing err.emit();
for the "spirv-opt failed" error. ( #412 )
2021-02-10 13:42:43 +00:00
XAMPPRocky
b60e258686
Add inline assembly docs ( #410 )
...
* Add inline assembly docs
* Add more docs
* Update inline-asm.md
2021-02-10 12:32:43 +00:00
Ashley Hauck
8a68551a06
Fix #403 ( #407 )
2021-02-02 12:20:10 +00:00
Eduard-Mihai Burtescu
3a4d140328
Don't require 1:1 mapping between OpTypeStruct
s and their names. ( #406 )
2021-02-01 14:24:02 +00:00
Ashley Hauck
3f0900c89d
Enable optimizer ( #401 )
...
* Enable optimizer
* Fix tests
2021-01-29 11:30:56 +00:00
Ashley Hauck
9f6c91c278
Remove different OpNames that target the same ID ( #398 )
2021-01-28 13:16:06 +00:00
Eduard-Mihai Burtescu
810ba5d1e4
Use rspirv::dr::Function's def_id convenience method. ( #397 )
2021-01-28 09:52:41 +00:00