Commit Graph
10470 Commits
Author SHA1 Message Date
TornaxO7 098aaae40a Extend texture tests with exhaust (#9172) 2026-03-24 13:52:54 -06:00
Inner Daemons a53ffffe38 Mesh shader HLSL writer (#8752) 2026-03-24 15:42:38 -04:00
Kevin Reid 1148bac37c Convert comments on lint attributes to reasons. (#9292) 2026-03-24 18:58:52 +00:00
Andy Leiserson 8ddbd2d236 fix(naga): Disallow derivatives for f16 (#9154) 2026-03-24 17:52:47 +00:00
Erich Gubler 6ebd5bfd4a style: run prettier on examples/README.md (#9269) 2026-03-24 10:25:43 -07:00
Andy Leiserson 0226d561c0 test: Limit bucketing tests 2026-03-23 18:25:15 -07:00
Andy LeisersonandTeodor Tanasoaia 55b45559a7 feat(core): Limit bucketing
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
2026-03-23 18:25:15 -07:00
Andy Leiserson f9b4cbf365 refactor(tests): Add NoopBackendOptions::enabled() constructor 2026-03-23 18:25:15 -07:00
ecoricemon d199493486 fix(naga): Raise an error on division by zero (#9276)
Add validation about division by zero in valiator.  Plus, fix div/rem on i32 in
const-eval.
Relevant spec <https://gpuweb.github.io/gpuweb/wgsl/#arithmetic-expr> says
"If e1 is most negative value in T, and e2 is -1: ..." which means -MIN / -1 is
an error. This is exercised by CTS.
2026-03-23 21:18:54 +01:00
ecoricemon 97e235fde8 fix(naga): Fix const evaluation on bool (#9275) 2026-03-23 21:13:11 +01:00
Charlie Tonneslan 5574c21126 Fix typo: dependant -> dependent in framework.rs comment (#9288) 2026-03-23 13:55:18 -04:00
Andy Leiserson f76801d8c1 fix(metal): Check respondsToSelector before feature detection calls (#9284)
These methods are not implemented by `CaptureMTLDevice`. The actual
calls succeed, because the exception is caught and handled by a
fallback mechanism, but the valid-method checks by objc2 in debug
builds are not aware of the fallback and panic.

Fixes #9282
2026-03-23 10:38:33 -07:00
renovate[bot] 4e4708423c chore(deps): update cargo.lock (#9286)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-23 16:47:35 +00:00
renovate[bot] c9e475d8f4 chore(deps): update cts digest to 1497494 (#9285)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-23 12:11:15 -04:00
Timo Kösters df0116137f Fix typo (#9279) 2026-03-23 00:46:17 -04:00
Andy Leiserson 81eca17db8 test(bench): Reset terminal color after report (#9272) 2026-03-20 18:12:04 +00:00
Erich Gubler 3c13b5e68c fix(metal): unconditionally enable CLIP_DISTANCES 2026-03-20 10:58:29 -06:00
Erich Gubler cc1a10f24a fix(msl-out): print resolved binding before array length
This only really applies to `[[clip_distances]]` right now, but Teo and
I are pretty sure this is the right order for other attributes we might
add for array types, too.
2026-03-20 10:58:29 -06:00
ecoricemon bb73dd843c fix(naga): Add validation for some math builtins in const-eval (#9249)
Added validation on builtin math functions `acosh`, `length`,
`normalize`, and `pow` during const evaluation.
2026-03-20 09:47:41 -07:00
Erich Gubler 0ca8ba04ac test(cts): add coverage for clip-distances feature 2026-03-19 18:40:46 -06:00
Erich Gubler 3e0e3591b5 fix(core): cover clip_distances bindings in max_inter_stage_shader_variables limit check 2026-03-19 18:40:46 -06:00
Erich Gubler c4169089e9 refactor(core): duplicate naga::BuiltIn to wgpu_core
Shortly, we're going to add our own functionality to it.
2026-03-19 18:40:46 -06:00
Erich Gubler 105a8a2454 refactor(core): import naga::Builtin 2026-03-19 18:40:46 -06:00
Inner Daemons b910720048 Add render_with_compute example (#9211) 2026-03-20 00:13:12 +00:00
Erich Gubler b7de7886b4 refactor: use plural "clip distances" for cross-platform layers (#9267) 2026-03-19 23:19:33 +00:00
Connor Fitzgerald 94ee0de5dc Improve release steps (#9263) 2026-03-19 18:57:17 -04:00
Erich Gubler d29383b814 fix(core): implement value comparison for Limits::max_inter_stage_shader_variables (#9264) 2026-03-19 21:29:23 +00:00
Connor Fitzgerald 06e2c7d24a Release v29 (#9260) v29.0.0 2026-03-18 20:23:53 -04:00
Andreas ReichandConnor Fitzgerald e4dae053c0 Change get_current_texture output to a unified enum (#9257)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-18 22:12:58 +00:00
Andy LeisersonandConnor Fitzgerald 41e85e7e2e docs(CHANGELOG): Minor cleanup (#9258)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-18 21:35:37 +00:00
Erich Gubler 805c372733 refactor(core): Interface::check_stage: use Iterator::zip for dimension checks (#9203) 2026-03-18 13:55:45 -07:00
Connor Fitzgerald 2810e95489 Update to winit 0.30 (#9089) 2026-03-18 20:34:12 +01:00
Andy Leiserson 9a3bba6962 feat(tracing): Trace failed create_*_pipeline calls (#9209) 2026-03-18 19:17:13 +01:00
Erich Gubler e6854ecf38 fix(core): panic on overflow for set_immediate's params. not coercing to usize 2026-03-18 12:16:00 -06:00
Erich Gubler 854ed79fd4 fix(core)!: validate set_immediate's values_offset param. 2026-03-18 12:16:00 -06:00
Erich Gubler f165d206ef fix(core)!: validate set_immediate's size_bytes param. 2026-03-18 12:16:00 -06:00
Erich Gubler 2a3dd23b03 fix(core)!: properly handle end offset overrun for immediate data 2026-03-18 12:16:00 -06:00
Andy Leiserson d5c0b137e0 test: Annotate one more KosmicKrisp failure (#9256)
Tracked in #9187
2026-03-18 11:13:25 -06:00
Andy Leiserson 04cce5ace7 feat(types): Add conversions to/from feature name strings (#9163) 2026-03-18 09:59:45 -07:00
Andy Leiserson 0e2650781c fix: dual-source blending validation
- Validate `@blend_src` structs in type validation. The spec requires
  validating any struct with `@blend_src` attributes, whether or not
  it is used by an entry point.
- Remove `@blend_src`-related interface validation that is
  redundant with the type validation.
- Dual-source blending requires that there be a single color
  attachment.
2026-03-18 09:52:01 -07:00
Andy Leiserson 3cb29686ae refactor(naga): Update IO_SHAREABLE definition 2026-03-18 09:52:01 -07:00
Bruce Mitchener 824211333d metal: use setMeshBytes for mesh shader immediates (#9254)
Other mesh-stage byte bindings already use `setMeshBytes`, but the
immediates path still used `setObjectBytes`. Switch that call
site to the mesh-stage encoder entry point.
2026-03-18 09:33:15 -04:00
Bruce Mitchener 66c4c30bdc metal: use typed objc2 pipeline creation APIs (#9253)
Fixes #8944
2026-03-18 09:25:07 -04:00
Erich Gubler 763180cda9 docs(CHANGELOG): add entry for #8782 (#9251) 2026-03-17 19:17:49 -04:00
ecoricemon 93fe05dd35 fix(naga): Validate matrix constructors (#9207)
Added column validation in matrix constructors.

CTS change
webgpu:shader,validation,expression,call,builtin,value_constructor:*
481/483 -> 483/483 (100%)
2026-03-17 13:24:20 -06:00
Connor Fitzgerald f59124f3f6 Add support for the D3D12 Agility SDK (#9130) 2026-03-16 20:43:32 -04:00
Andy Leiserson d5b6945d95 test(cts): Skip max_resources_per_stage on dx12 (#9247) 2026-03-16 20:42:44 -04:00
Bruce MitchenerandAndy Leiserson 28bda54ae0 metal: prevent command buffer exhaustion deadlocks (#8574)
- Track outstanding Metal command buffers per queue and gate begin_encoding against the hard MAX_COMMAND_BUFFERS, returning device-lost with an actionable warning instead of letting new_command_buffer hang when encoders are leaked.
- Share the counter across queue/encoders and decrement on submit or discard after clearing the raw command buffer so drop happens before the bookkeeping update.

Fixes #3084, #8047.

---------

Co-authored-by: Andy Leiserson <aleiserson@mozilla.com>
2026-03-16 15:44:12 -07:00
Connor Fitzgerald 384b7bb027 Update codespan-reporting to 0.13 (#9243) 2026-03-16 21:52:58 +00:00
Erich Gubler 4d13af7a1a test(CHANGELOG): allow deletion up to released (#9246) 2026-03-16 20:53:42 +00:00