Commit Graph

73 Commits

Author SHA1 Message Date
XAMPPRocky
353bb96bd3
Add gpu_only proc macro (#392) 2021-01-25 10:39:47 +00:00
Jesse
04ad2ad64f
fix: handle an ICE resulting from a dangling pointer (#342) 2021-01-20 12:52:06 +00:00
Eduard-Mihai Burtescu
5f0b380a39
inline asm!: support writing _ in lieu of return types, for basic inference. (#376)
* Basic type constraints for all non-reserved SPIR-V instructions.

* inline asm!: support writing _ in lieu of return types, for basic inference.

* Demonstrate using result type inference in inline asm!.

* inline asm!: allow inferring the result type of OpSampledImage.
2021-01-20 10:40:26 +00:00
Ashley Hauck
225d89d7de
discard(), update rspirv, better capability computation (#380) 2021-01-18 11:59:27 +00:00
Ashley Hauck
8eadd904f7
Add derivatives for vector functions (#377) 2021-01-18 10:28:46 +01:00
Adrian Herath
f7cdf1d6bd
Rename unclear local variables in parse_image() (#379)
The variable name `dim` is used to represent dim, image_format, and
access_qualifier in parse_image(). This might cause confusion for
someone trying to read and understand symbols.rs. This commit changes
names of variables to better reflect their purpose.

Co-authored-by: Adrian Herath <adrianisuru@manjaro.hsd1.il.comcast.net>
2021-01-18 06:52:43 +00:00
XAMPPRocky
d55bf60b02
Document Derivative (#366)
* Document Derivative

* Mention absolute
2021-01-15 12:13:43 +00:00
XAMPPRocky
38f2ec12c9
Update bimap->0.6, pipe->0.4, strum->0.20, websys->0.3.46 (#365) 2021-01-11 09:08:02 +00:00
XAMPPRocky
9e7b9de28f
Add autolinks to silence rustdoc warnings (#363) 2021-01-05 12:14:34 +00:00
XAMPPRocky
b9592e50c5
Update to latest nightly (#358) 2021-01-04 10:25:56 +00:00
Jake Shadle
a6294e1df4
Update spirv-tools (#351)
* Split android into separate job

* Bump spirv-tools to 0.3.1
2020-12-18 10:44:50 +01:00
XAMPPRocky
51038a6ee9
Add description (#323) 2020-12-17 10:03:09 +00:00
Viktor Zoutman
a2a2e3917e
Renamed spirv-attrib to spirv-std-macros (#347) 2020-12-15 15:16:57 +00:00
Viktor Zoutman
46c16d1d0b
Better spirv-attrib (#346)
* Feedback

* cleanup

* Cleanup

* cleanup

* Feedback

* fmt cmon man, I need to format my code manually? pffff

* More feedback! fmt is no longer useless as well

* removed newline

* more if guards

* removed import

* MORE feedback

* fromiterator is gone!

* Removed debug line
2020-12-15 14:13:30 +00:00
Viktor Zoutman
1bcb994d59
Compile examples and spirv-std on stable (#340)
* Compile examples and spirv-std on stable

* new line

* weid space
2020-12-14 09:50:45 +00:00
Jake Shadle
95a4cfab41
Update spirv-tools to 0.2.0 (#343)
* Update spirv-tools to 0.2.0

* Rustfmt
2020-12-14 09:43:23 +00:00
Eduard-Mihai Burtescu
9e99c05a76
Update to nightly-2020-12-11. (#338)
* Update to nightly-2020-12-11.

* Update for rustfmt changes (`cargo fmt --all`).

* Update `rustc_codegen_spirv::linker::test` for `rustc_interface` changes.

* Use `spirv_tools::util::{to,from}_binary` to pacify clippy.

* `#[allow(clippy::unnecessary_wraps)]` on `Result`-returning `fn run_thin`.
2020-12-11 10:40:35 +00:00
Viktor Zoutman
06de5ba6ef
stable spirv-std (#335)
* should compile on stable now

* moved allow into cfg_attr

* more allow

* merged cfg_attr's
2020-12-11 10:31:17 +00:00
Eduard-Mihai Burtescu
ebf3dbee8d
Support "Unroll" Loop Control via function-scoped #[spirv(unroll_loops)]. (#337)
* Generalize the zombie serialization system to arbitrary custom decorations.

* Support "Unroll" Loop Control via function-scoped `#[spirv(unroll_loops)]`.

* Pacify the merciless clippy.
2020-12-10 19:57:15 +00:00
msiglreith
37b338ce67
fix coordinate type for SampleImage<Image2D> (#327) 2020-12-07 09:25:51 +00:00
XAMPPRocky
c1dc273e70
Update version number (#322)
* Update version number

* Add lockfile
2020-12-04 16:50:19 +00:00
msiglreith
fecc71d53f
Add support for sampled images (#320)
* Add support for sampled images

Combined image samplers are allowed as resources and require a generic parameter indicating the underlying image type.

* fix formatting issues

* address review comments

* fix formatting issues
2020-12-04 15:51:27 +00:00
Ashley Hauck
a653c61b64
Get closer to testing NO_DCE in CI (#321)
* Get closer to testing NO_DCE in CI

The only remaining validation issues are due to the SROA pass not being
implemented yet

* Revert mistakenly included change
2020-12-04 15:05:13 +00:00
Ashley Hauck
c70cee8f97
Add flat attribute (#317)
* Add flat attribute

* Document attributes
2020-12-04 11:20:58 +00:00
Eduard-Mihai Burtescu
6c7ca97e9b
Intercept panic calls and replace them with aborts. (#305)
* new_structurizer: fix infinite loops.

* intrinsics: use an infinite loop for `abort`.

* Don't deduplicate zombie values even with other zombies.

* Bring back `zombie_even_in_user_code` and use it for constants.

* Use global `OpVariable`s instead of undefs for `ConstantPointer`s.

* Intercept panic calls and replace them with aborts.
2020-12-03 18:40:24 +00:00
Ashley Hauck
bf9ef104d1
Make capability computation less strict, strings in asm! (#310)
* Make capability computation less strict, strings in asm!

* remove accidental println
2020-12-03 17:51:33 +00:00
Eduard-Mihai Burtescu
d4f791fda2
Track spans for zombies, even cross-crate. (#311)
* Track spans for zombies, even cross-crate.

* Pacify the merciless clippy.
2020-12-03 16:14:32 +00:00
Jasper Bekkers
e733f44637
Glam 0.11.1 (#309)
* Switch to glam 0.11.1

* Add lock file
2020-12-03 10:55:29 +00:00
Gray Olson
b41fe70b55
update glam to track bitshifter:master (#307) 2020-12-03 06:28:03 +00:00
Ashley Hauck
d8d80d77f6
Add test for issue 283 (#302) 2020-12-02 17:50:48 +00:00
Jasper Bekkers
bdfb537d4e
Add Image2dArray, needs new glam-rs (#301)
* Add Image2dArray, needs new glam-rs

* Newline
2020-12-02 16:01:42 +00:00
Eduard-Mihai Burtescu
e02beade35
New structurizer: now with ∞% more φ! (#287) 2020-12-02 11:05:04 +00:00
Eduard-Mihai Burtescu
adebc90070
Remove #[spirv(push_constant)] from function parameters. (#296) 2020-12-01 15:14:54 +00:00
Eduard-Mihai Burtescu
ae42a911a1
#[spirv(block)] for Block decorations on structs. (#295) 2020-12-01 14:28:49 +00:00
Eduard-Mihai Burtescu
340dfc4a76
spirv-builder: pass --target-dir to Cargo to avoid lock conflicts. (#293) 2020-12-01 14:09:36 +00:00
Ashley Hauck
0801e48ae0
Update glam to include latest changes (#291)
* Update glam to include latest changes

* Try workaround on CI...
2020-12-01 12:47:37 +00:00
Viktor Zoutman
f989dfe428
No longer reserved descriptor set 0 (#292) 2020-12-01 12:17:40 +00:00
Ashley Hauck
114d029163
Do not merge zombie and non-zombies (#288) 2020-11-30 15:27:02 +00:00
Ashley Hauck
c097297c51
Pass in span to type translator, remove zombie_even_in_user_code (#278) 2020-11-30 11:55:33 +00:00
XAMPPRocky
16c380a71b
Refactor and document storage classes (#280)
* Refactor storage classes macro and organisation

* Update storage_class.rs
2020-11-27 15:20:44 +00:00
Ashley Hauck
a73f54aa86
Implement textures (#276) 2020-11-26 13:16:22 +00:00
XAMPPRocky
59869ec58b
Move lang_items into spirv-std (#275) 2020-11-26 09:12:18 +00:00
Ashley Hauck
5f3fd5c9d1
rustup update (#273) 2020-11-26 09:00:22 +00:00
Gray Olson
353fa96af6
Rename pow to powf, remove saturate from MathExt, and update to latest glam (#248)
* remove saturate from spirv_std MathExt and rename pow to powf

* update to latest glam

* update glam again and add `std` feature to `spirv-std` to support cpu runner

* re-remove spirv-tools-sys submodule

* fixup! Merge branch 'main' into powf-saturate

* Use libm instead of MathExt

* Fix lint for unused import when compiling with std

Co-authored-by: khyperia <github@khyperia.com>
2020-11-24 09:28:58 +00:00
Henno
3888fbe51f
Add compile error when both use-compiled-tools and use-installed-tools are enabled (#269)
* Add compile error when both use-compiled-tools and use-installed-tools are enabled

The compile error is located in the build.rs for rustc-codegen-spirv so that the error happens early, rather than after compiling spirv-tools.

* lint

* lint
2020-11-23 06:37:47 +00:00
Eduard-Mihai Burtescu
28f604eb77
Use rustc_codegen_llvm's get_dylib_metadata to unblock proc macros. (#268) 2020-11-20 18:37:01 +00:00
Ashley Hauck
a92d76a81c
Intercept calls to libm (#264)
* Intercept calls to libm

* Switch to using function names instead of symbols

* remove forgotten comment
2020-11-20 18:35:58 +00:00
Eduard-Mihai Burtescu
6e0e23c620
spirv-builder: pass through non-JSON stdout lines even after an error. (#267) 2020-11-20 18:25:21 +00:00
Eduard-Mihai Burtescu
0581f8580e
Use a demangled symbol name for OpName. (#266)
* Use a demangled symbol name for OpName.

* Rename my_smoothstep back to smoothstep.

* Update SPIR-V tests to look for the absolute fn
path.
2020-11-20 13:54:26 +00:00
Eduard-Mihai Burtescu
3eebcd789f
Don't rely on symbol names in is_blocklisted_fn. (#265)
* Don't rely on symbol names in is_blocklisted_fn.

* is_blocklisted_fn: move "fmt_decimal" to symbols.
2020-11-20 11:43:31 +00:00