Commit Graph

457 Commits

Author SHA1 Message Date
firestar99
eb6f9174fa macros: add spirv_vector attribute macro for declaring spirv Vector types 2025-10-22 19:32:22 +02:00
firestar99
67ccf2f6aa format args decompiler: move support functions in spirv-std to mod debug_printf
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
Currently, every time `lib.rs` changes, there's a change in the debug printf compiletest stderr, which is causing a lot of churn.
2025-10-22 13:42:03 +00:00
firestar99
8c3fa7b7e8 subgroup: add subgroup_broadcast_const variant for pre-spv1.5 broadcasts 2025-10-22 13:31:48 +00:00
firestar99
f438c8c817 scalar or vector: rename VectorOrScalar to ScalarOrVector and give it its own mod 2025-10-22 12:30:23 +00:00
firestar99
08a245cb23 scalar or vector: move all scalar traits and impl macros to mod scalar 2025-10-22 12:30:23 +00:00
firestar99
0ada17d0ec scalar or vector: reexport all Scalar traits in lib.rs, make mods private
apart from `mod float`, which contains functionality
2025-10-22 12:30:23 +00:00
firestar99
a28bd3a333 SpecConstant: add arrayed spec constants 2025-10-22 08:37:42 +00:00
firestar99
300da9c21d compiletest: pass -Zui-testing to rustc 2025-10-22 03:55:58 +00:00
firestar99
50019a74a8 compiletest: normalize subgroup tests 2025-10-22 03:55:58 +00:00
firestar99
e7971d3695 compiletest: update readme normalize examples 2025-10-15 09:42:01 +00:00
firestar99
adf6ee9523 abi layout: add some compiletests 2025-10-15 09:42:01 +00:00
firestar99
7e02135fb8 abi layout: limit vectors to at most 4 components, as spec states 2025-10-15 09:42:01 +00:00
firestar99
9218e64b59 abi layout: minor code cleanups 2025-10-15 09:42:01 +00:00
firestar99
95837d7999 abi layout difftest: cuda and scalar-math feature testing 2025-10-15 09:42:01 +00:00
firestar99
6ed642b5bb abi layout difftest: cuda and scalar-math feature forwarding 2025-10-15 09:42:01 +00:00
firestar99
45147a21d5 abi layout difftest: add all remaining glam types 2025-10-15 09:42:01 +00:00
firestar99
a5442acd31 abi layout compiletest: bless complex_image_sample_inst 2025-10-15 09:42:01 +00:00
firestar99
9b2860639f abi layout: change Subgroup from transparent struct to typedef 2025-10-15 09:42:01 +00:00
firestar99
f30056a1c1 abi layout compiletest: fix invalid-matrix-type 2025-10-15 09:42:01 +00:00
firestar99
e7f4f3b81b abi layout: glam::BVec support 2025-10-15 09:42:01 +00:00
firestar99
cb8df101b4 update glam: switch from #[repr(SIMD)] to #[rust_gpu::vector::v1] 2025-10-15 09:42:01 +00:00
firestar99
c83ef32ab7 abi layout difftest: add member offset checking 2025-10-15 09:42:01 +00:00
firestar99
5037751f8a abi layout difftest: add difftest for layout size and alignment 2025-10-15 09:42:01 +00:00
firestar99
a26e0df73a compiletest: shared memory reductions, using the same type in buffers and as shared memory
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-10-11 10:58:29 +00:00
Eduard-Mihai Burtescu
8c8ff2fe1f Erase explicit layout decorations (Offset/ArrayStride) when disallowed by Vulkan. 2025-10-11 10:58:29 +00:00
firestar99
7a72a2fa40 byte_addr_buffer: compiletests with mixed scalar and scalar pairs, store is failing 2025-10-11 09:50:40 +00:00
Christian Legnitto
56cc132145 Fix divide by zero
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
We assumed every array/vector/matrix element has a non-zero stride,
but `[()]` inside `BitSlice` produced a zero stride which is divide by zero.

Fixes https://github.com/Rust-GPU/rust-gpu/issues/424.
2025-10-09 08:49:19 +00:00
firestar99
dbf373762d tool: fix compiletest invalid-target, add newlines and bless
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-10-07 06:21:45 +00:00
firestar99
67b6b450a3 tool: fix compiletest invalid-target, no newlines to keep stderr the same 2025-10-07 06:21:45 +00:00
Nicholas Nethercote
50a8507528 rustup: update to nightly-2025-06-30.
- `filter_landing_pad` no longer has a return value.
- `build_session` no longer has the `sysroot` argument.
- `manual_is_multiple_of` clippy lint was enabled.
2025-09-30 05:09:06 +00:00
Nicholas Nethercote
59f07389b3 Fix a mistake in the compiletests docs. 2025-09-24 07:56:44 +00:00
firestar99
ca2ea7b60a glam-infication of spirv-std 2025-09-18 08:10:06 +00:00
firestar99
5b5237416a adjust examples and difftests to new safe functions 2025-09-17 15:46:24 +00:00
firestar99
7e1502740a remove needless unsafe from intrinsics 2025-09-17 15:46:24 +00:00
firestar99
c526055bed asm vector: adjust compiletest dis/complex_image_sample_inst, remove non-sense ConstOffset 2025-09-17 14:42:00 +00:00
firestar99
eed7cf27b5 asm vector: fix subgroup_ballot() 2025-09-17 14:42:00 +00:00
firestar99
45b3ec0d35 asm vector: adjust compiletest lang/asm/const_args 2025-09-17 14:42:00 +00:00
firestar99
fb42c2b1fe Matrix4x3: add Matrix4x3, needed for raytracing intrinsics 2025-09-17 12:16:13 +00:00
Christian Legnitto
7358fae6ec black_box: Add difftest
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-09-08 18:13:38 +00:00
Christian Legnitto
6bb1066fac black_box: Fix pair and add disasembly compiletest 2025-09-08 18:13:38 +00:00
firestar99
ec156e2dc5 black_box: test passing slice through black_box, ICE 2025-09-08 18:13:38 +00:00
firestar99
912f91d125 black_box: disassemble compiletest 2025-09-08 18:13:38 +00:00
Christian Legnitto
e5290b349c black_box: Make black_box a no-op
Part of https://github.com/Rust-GPU/rust-gpu/issues/312
2025-09-08 18:13:38 +00:00
Christian Legnitto
cb518bbb09 Update tracing-subscriber for RUSTSEC-2025-0055
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
This reverts commit 85d0ea0022.

And fix for glam after `cargo update` in difftests
2025-09-07 13:37:49 -07:00
Christian Legnitto
85d0ea0022 Revert "Update tracing-subscriber for RUSTSEC-2025-0055"
This reverts commit b6172ae264.

The `cargo update` broke something that didn't break locally
2025-09-07 12:41:45 -07:00
Christian Legnitto
b6172ae264 Update tracing-subscriber for RUSTSEC-2025-0055
https://rustsec.org/advisories/RUSTSEC-2025-0055
2025-09-07 12:22:16 -07:00
Eduard-Mihai Burtescu
e0dfdd1112 spirv_asm: use line_spans for slightly better source locations.
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-08-18 20:38:21 +00:00
Cai Bear
b320baf49b Add Image::fetch_with_lod
Fixes #360

I used the terminology level since that's what WGSL used, but it would also make sense to use lod since that's what SPIR-V and GLSL's texelFetch use.
2025-08-16 21:14:45 -07:00
firestar99
df1628a032 allow integer literals to have a suffix
All checks were successful
Rust Toolchain Upgrade / check-and-upgrade (push) Has been skipped
2025-08-04 00:29:20 +00:00
firestar99
beab6cf6f2 downgrade bitflags to 1.X, our backend fails with 2.X 2025-07-28 10:10:08 +00:00