Andy Leiserson
dbab82fe42
chore(naga): Downgrade some log messages to debug
2026-02-03 12:59:48 +01:00
Andy Leiserson
28bc72f5bc
fix(naga): Validate swizzles in lowering ( #8949 )
2026-02-03 01:38:28 +00:00
Mads Marquart
a5116520b0
metal: Move API availability checks out of PrivateCapabilities
...
We always want to call newer methods if available, so there is no need
to store this in a variable if we can use the `available!` macro
directly at the usage site.
2026-02-02 17:08:14 -08:00
Mads Marquart
13a1da5df1
metal: Use objc2::available! macro
...
This is clearer than the check against `NSOperatingSystemVersion`, and
the `available!` allows being compiled away if the deployment target is
specified to be high enough.
The `available!` macro also allows checking against patch versions.
2026-02-02 17:08:14 -08:00
renovate[bot] and Andy Leiserson
ad925cafed
chore(deps): update crate-ci/typos action to v1.43.0 ( #8978 )
...
* chore(deps): update crate-ci/typos action to v1.43.0
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andy Leiserson <aleiserson@mozilla.com >
2026-02-02 11:55:24 -08:00
renovate[bot]
b5c53856b7
chore(deps): update cargo.lock ( #8979 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-02 10:38:53 -08:00
renovate[bot]
33e8e50fd9
chore(deps): update cts digest to 0ae1164 ( #8977 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-02 09:54:48 -08:00
Erich Gubler and Andy Leiserson
1d6036f95a
test(cts): move from --quiet and --verbose to --print-output-when ( #8936 )
...
Co-authored-by: Andy Leiserson <aleiserson@mozilla.com >
2026-02-02 16:28:06 +00:00
Teodor Tanasoaia
a54dec07eb
[wgsl-in] Avoid looking up newly introduced parameter names while parsing function parameters and its return type. ( #8980 )
2026-02-02 06:15:05 -07:00
Luo Zhihao
c0f04c801c
Validate strip_index_format equals index buffer format for indexed drawing with strip topology
2026-02-01 23:14:52 -08:00
Mads Marquart
b9c09622ce
fix(naga): Fix macOS 10.12 nested initializers
...
The Metal 2.0 compiler (shipped with macOS 10.13 and Xcode 9.0) has
allowed flattening aggregate initializers, but when running on macOS
10.12, we still use the old compiler, so to support that, we need to use
nested initializer lists.
2026-02-01 22:37:52 -08:00
Erich Gubler
a586d96be9
refactor(vulkan): use array iterator + all for tex. fmt. support queries ( #8964 )
2026-02-01 00:02:00 -05:00
Andy Leiserson
35916162fd
test(cts): Update lists with triage results ( #8967 )
...
* test(cts): Update lists with triage results
* more test list updates
* Even more test list updates
2026-01-31 23:15:28 -05:00
Andy Leiserson
2c9e77a19d
clippy: Adjust large-error-threshold and remove waivers ( #8974 )
2026-01-30 22:37:24 -05:00
Inner Daemons
fab57513ec
Add metallib passthrough ( #8886 )
2026-01-30 13:52:05 -05:00
Andy Leiserson
1af73121f4
fix(core): Read-write bindings are compatible with write-only shaders ( #8951 )
...
Fixes #8905
2026-01-30 09:44:22 -08:00
Andy Leiserson
735e8d2a40
Fix validation related to depth bias and frag_depth
...
* Depth bias is only supported with triangle topologies (fixes #6071 )
* If the shader outputs `frag_depth`, the pipeline must have a depth
attachment
2026-01-30 09:36:29 -08:00
Andy Leiserson
b316204dff
Allow shaders w/ dual-source blend I/O in non-DSB pipelines
...
Fixes #8592
2026-01-30 09:36:29 -08:00
Andy Leiserson
3bacd7bee5
refactor(core): Tweak dual-source blending validation
2026-01-30 09:36:29 -08:00
Andy Leiserson
6b108091cc
test(naga): Change test span generator to a struct ( #8968 )
2026-01-30 10:11:07 -05:00
Andy Leiserson
c6bf076d78
fix(naga): Reject unsupported enable extensions ( #8913 )
...
Previously we required that the enable extension be declared and that
the capability be present if the functionality was used, but allowed the
extension to be declared if the functionality was not used.
2026-01-30 10:08:04 -05:00
Andy Leiserson
a24965f8b7
fix(naga): Coerce matrix initializers to concrete floats ( #8817 )
2026-01-29 18:00:26 -08:00
Andy Leiserson and Jim Blandy
70a7f83ea8
naga: Enforce @must_use for built-in functions ( #8713 )
...
---------
Co-authored-by: Jim Blandy <jimb@red-bean.com >
2026-01-29 15:03:29 -08:00
Sam
f7ce2a0052
wgpu: Relese map_context lock before map_async closure call ( #8966 )
2026-01-29 14:49:51 -05:00
Vecvec
8a37e0f56a
[wgsl in and IR] naga ray tracing pipelines ( #8570 )
2026-01-29 14:18:56 -05:00
Erich Gubler
c0c7aafe1b
docs(CHANGELOG): nest unreleased Changes > General section properly ( #8965 )
2026-01-29 18:14:08 +00:00
Kevin Reid
b0a5da442e
Make internal-use hidden macros crate-private instead. ( #8961 )
2026-01-29 12:38:54 -05:00
Timo Kösters and Erich Gubler
b93bab52bc
feat: support blendable f32 textures on vulkan ( #8963 )
...
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2026-01-29 17:07:22 +00:00
Inner Daemons
c82e37b683
Validate pipelines with passthrough shaders but no explicit layout passed ( #8881 )
2026-01-28 20:14:33 -05:00
Timo Kösters
db8270e3bc
docs: clarify bytes_per_row requirement ( #8959 )
2026-01-28 23:03:33 +00:00
Andy Leiserson
b512f7e36f
test(naga): Tests for mesh shader extension validation ( #8871 )
2026-01-28 16:36:30 -05:00
renovate[bot]
7717c87f28
chore(deps): update rust crate glam to 0.31.0 ( #8928 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-28 16:34:10 -05:00
Vecvec
f3b5243db7
Refactor build_acceleration_structures to require fewer passes ( #8904 )
2026-01-28 16:14:28 -05:00
Sam
2d2b109111
wgpu: Require Drop on *PassInterface and remove end from it ( #8851 )
2026-01-28 15:55:59 -05:00
Erich Gubler
e816bd7ed4
build: add cargo component to rust-toolchain.toml
...
I noticed that when I force-updated the toolchain being used for wgpu,
I got an error about the `cargo` binary not being available after
redirecting a naive `cargo` invocation to the set of binaries for the
1.93 toolchain. This fixes that issue.
2026-01-28 15:42:38 -05:00
Erich Gubler
487afd21e4
chore: update REPO_MSRV 1.92 → 1.93
2026-01-28 15:42:38 -05:00
Erich Gubler
59c351be6a
refactor: satisfy clippy::unnecessary_unwrap
...
New in Rust 1.93! Reference:
[`clippy::unnecessary_unwrap`](https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#unnecessary_unwrap )
2026-01-28 15:42:38 -05:00
Erich Gubler
33a91d4ada
refactor(spv-out): subvert-replace "recycle" in trait Recyclable to "reclaim"
...
This avoids `rustc` errors new to Rust 1.93. These errors are because
`Recyclable::recycle` triggers the `unstable_name_collisions` lint on
use, detecting a collision with the unstable `vec_recycle` Nightly
feature.
2026-01-28 15:42:38 -05:00
Jim Blandy
1add139b75
[naga wgsl-in] Consolidate bitcast and coopLoad handling.
...
In `naga::front::wgsl::lower::Lowerer::call_builtin`, consolidate the
cases for `bitcast`, `coopLoad`, and `coopLoadT` with the other
miscellaneous builtin functions.
2026-01-28 12:36:21 -08:00
Jim Blandy
7b473a7aba
[naga wgsl-in] Move builtin function calls into their own fn.
...
Move the code for handling calls to WGSL builtin functions out of
`Lowerer::call` and into its own new function,
`Lowerer::call_builtin`, for clarity. Do template parameter list
finalization in the caller.
2026-01-28 12:36:21 -08:00
Jim Blandy
6abcc54ee1
[naga wgsl-in] In Lowerer::call, handle constructors first.
...
Rearrange `naga::front::wgsl::lower::Lowerer::call` to check
for construction expressions for predeclared types before checking for
any builtin function names, including those that take template
parameter lists like `bitcast` and `coopLoad`.
2026-01-28 12:36:21 -08:00
Erich Gubler
b285d3f9bb
Restrict several internal Naga APIs to pub(crate) ( #8956 )
2026-01-28 17:45:53 +01:00
Andy Leiserson
7e5f016ca7
chore(cts): Enable test fixed by objc2 ( #8950 )
...
Closes #7357
2026-01-28 07:56:16 -08:00
Jim Blandy
66f95269b5
[naga wgsl-in]: Rename error variant field for clarity.
...
Rename `naga::front::wgsl::error::Error::MissingTemplateArg::arg` to
`description`, to make it a little more specific.
2026-01-28 12:00:35 +01:00
Jim Blandy
63d6c34859
[naga wgsl-in] Flatten control flow for clarity.
...
Adjust some methods of `TemplateListIter` to ensure that the typical
complete control flow through the function follows the outermost
nesting level.
2026-01-28 12:00:35 +01:00
Jim Blandy
81a1e8d3cf
[naga wgsl-in] Don't permit template parameters after enumerants.
2026-01-28 12:00:35 +01:00
Jim Blandy
7b3c7f7da7
[naga] Simplify proc::Namer's handling of struct member names.
...
Rather than passing `call_impl` an `ignore_builtin_identifiers` flag
and plumbing that through from its points of use, extend
`Namer::namespace` to suspend the `builtin_identifiers` table, as it
does for `unique` already. The resulting behavior is the same.
2026-01-28 12:00:35 +01:00
Jim Blandy
85bd8b45bd
[naga wgsl-in] Doc fixes.
2026-01-28 12:00:35 +01:00
Jim Blandy
71f186a032
[naga wgsl-in] Minor rearrangement to flatten control flow.
...
Use `if let`, `let else`, and `Option` methods to reduce nesting and
clarify success paths.
2026-01-28 12:00:35 +01:00
Jim Blandy
555bc09017
[naga wgsl-in] Use typical abbreviations in map_predeclared_type.
2026-01-28 12:00:35 +01:00