Commit Graph
9417 Commits
Author SHA1 Message Date
Jamie Nicol 3ba583cd61 [CI] Refactor DXC and WARP installation steps to composite actions
This avoids having to duplicate the steps and version numbers across
mutiple workflows.
2025-06-17 09:14:44 -04:00
Jamie Nicol ad4286102a [dx12] Return OOM error when GetResourceAllocationInfo() returns SizeInBytes == 0
Some versions of WARP return an allocation info with SizeInBytes == 0
for very large allocations. Proceeding to attempt to allocate a zero-
sized resource results in a device lost error. It's preferable to
instead return an out of memory error.
2025-06-17 09:14:44 -04:00
Jamie Nicol aeb2c3e6c7 chore(cts): Fix parsing of Git for Windows version string
Git for Windows adds an extra suffix to the version string. This is a
follow up to #7800 that ensures we parse such git versions correctly
rather than returning an error.
2025-06-17 21:27:25 +09:00
Andy Leiserson 45ebc73610 [naga] Always compact the module in process_overrides
Fixes #7638
2025-06-16 16:42:02 -07:00
Andy Leiserson afa0f71736 [deno] Fix dropping of command encoders/buffers, and an enum typo (#7808)
Fixes #7797
2025-06-16 10:50:19 -07:00
Erich Gubler 371c8fd1db chore(cts): clone CTS only shallowly (#7800) 2025-06-16 10:39:35 -07:00
renovate[bot] 70368feeb0 Update Cargo.lock (#7809)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-16 09:40:57 -04:00
Vecvec 03775c54fe Prevent naga crashing on an aliased ray query. (#7759) 2025-06-16 08:45:39 +00:00
Dmitry Zamkov bbb7cc79ef Implement clip-distances extension for GL and Vulkan backends (#7730)
* Basic implementation of `clip_distances` for Vulkan and GL backends

* Added GPU test for `clip-distances`

* Update feature array size

* Add changelog entry

* Validate `clip_distances` array size

* Check for `clip_distances` enable directive

* Consolidate code for generating `enable` directives in WGSL backend and add `clip_distances`.
2025-06-16 10:33:31 +02:00
Phena Ildanach 486a77d682 [naga glsl-out] Split writes for memory/control barriers 2025-06-16 10:22:46 +02:00
Phena Ildanach dd273fd7e2 [naga spv] Split workgroup and subgroup memory semantics in Control Barriers 2025-06-16 10:22:46 +02:00
Phena Ildanach 1e031e7a02 [naga spv-in] Add support for Memory Barriers 2025-06-16 10:22:46 +02:00
Xiaopeng Li 65337894f6 Fix texture_from_d3d11_shared_handle compatibility on AMD/Nvidia GPUs (#7782)
* wrapper dedicated allocate info

* comment on why p_next is set manually
2025-06-13 14:48:56 -04:00
Erich Gubler f96ac55aa4 fix(naga): don't panic on f16s in pipeline constants (#7801) 2025-06-13 10:41:19 -07:00
Andy Leiserson 620c9d1e8b Deferred error reporting for debug commands (#7789) 2025-06-12 11:53:32 -07:00
Erich Gubler cf83de3a5d chore!: remove deprecated type aliases for idents. in 2024-08 spec. rename (#7790)
This backs out commit 9436d56271.
2025-06-12 09:55:00 -04:00
Andy Leiserson 82fa8e2a94 [naga] Remove non-essential override references via compaction
Adds a mode to compaction that removes unused functions, global
variables, and named types and overrides. This mode is used
everywhere except the compaction at the end of lowering, where
it is important to preserve unused items for type checking and
other validation of the module.

Pruning all but the active entry point and then compacting makes
`process_overrides` tolerant of missing values for overrides that are
not used by the active entry point.

Fixes #5885
2025-06-12 14:22:18 +09:00
Andy Leiserson 096f1f1f6d [naga] Remove the compact feature 2025-06-12 14:22:18 +09:00
Andy Leiserson 611a2bbede [naga] Create a helper for adjust_doc_comments 2025-06-12 14:22:18 +09:00
Vecvec aa427de4ea Remove unsafe acceleration structure build (#7513) 2025-06-12 00:43:03 -04:00
645354a528 Make naga span methods take path as generic AsRef Path (#7643)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-06-12 01:55:25 +00:00
VecvecandConnor Fitzgerald 73eb83ded1 [wgpu] Blas compaction (#7285)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-06-11 21:40:10 -04:00
Vecvec efbac5dfba Add extra acceleration structure vertex formats. (#7580) 2025-06-11 18:17:14 -04:00
Jim Blandy 41616d9ddf wgpu_hal::vulkan: Introduce SemaphoreList helper type. (#7749) 2025-06-11 21:01:57 +00:00
Andy Leiserson ce89c916f8 Add storage for an error in CommandEncoderStatus (#7785) 2025-06-11 09:56:14 -07:00
Erich Gubler 9659838a1b refactor(naga): resolve!(…): de-dupe $expr usage (#7787) 2025-06-11 11:33:37 -04:00
renovate[bot]andAndreas Reich 5a7af54619 chore(deps): update rust crate cargo_metadata to 0.20 (#7744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-06-11 11:24:33 -04:00
Erich Gubler db3c35db90 fix(naga): properly impl. auto. type conv. for select 2025-06-11 21:55:02 +09:00
Erich Gubler 3c0803d1cc refactor(wgsl-in): make Scalar::concretize pub(in crate::front::wgsl) 2025-06-11 21:55:02 +09:00
Erich Gubler 77def411c4 fix(const_eval): allow casts from AbstractInt to itself (#7657) 2025-06-11 09:06:20 +00:00
Jim Blandy 9046b439d7 Add more logging to Instance::device_request_adapter. (#7786) 2025-06-11 08:36:15 +00:00
Nico Burns 630905134b Make strum a dev-only dependency (#7776) 2025-06-11 04:32:11 -04:00
Andy Leiserson e9af205c71 [deno] Implement ShaderModule.getCompilationInfo (#7736) 2025-06-11 03:49:39 -04:00
Andy Leiserson 1d4891ab5a [deno] Return undefined instead of null from Queue.submit (#7784) 2025-06-11 03:40:19 -04:00
Andy Leiserson 24f779696b Tweak MapPassErr to work for both errors and results (#7780) 2025-06-10 10:26:36 -07:00
Andy Leiserson 54d30da44a Fix the publish job (#7783) 2025-06-10 17:19:42 +00:00
Andy Leiserson 77d2b0017a Split EncoderStateError from CommandEncoderError (#7779) 2025-06-10 09:46:30 -07:00
Zachary HarroldandAndreas Reich e72c4d8326 MVP no_std for wgpu (#7747)
Co-authored-by: Andreas Reich <1220815+Wumpf@users.noreply.github.com>
2025-06-10 08:40:07 +02:00
Teodor Tanasoaia e10bceb1dc [d3d12] increase max_compute_workgroup_storage_size (#7777) 2025-06-09 22:37:07 +02:00
Andy Leiserson d9c4bf22ea Panic on errors in pass_end_with_unresolved_commands (#7765) 2025-06-09 11:28:43 -07:00
Andy Leiserson 1194833a74 [deno] Make QuerySet.destroy a no-op for now (#7758)
Implementing it is tracked by #6495. In the mean time it is okay for it
to be a no-op. `destroy` just recovers the resources earlier than garbage
collection might, doing nothing is not a leak.
2025-06-09 10:22:42 -07:00
renovate[bot] d09c730c02 chore(deps): update rust crate nanorand to 0.8 (#7772) 2025-06-09 04:10:11 +00:00
renovate[bot] 8e7b87bee8 chore(deps): update cargo.lock (#7774)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-09 04:02:58 +00:00
renovate[bot] d1a5b6e98f chore(deps): update rust crate which to v8 (#7773)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-08 23:27:55 -04:00
renovate[bot] e7d3bb440e chore(deps): update crate-ci/typos action to v1.33.1 (#7771)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-08 23:24:40 -04:00
LitoMore 9c0ccae357 Polish badges (#7769) 2025-06-07 17:51:30 -04:00
tesselode 18581f38fe remove outdated docs for Adapter::request_device (#7768) 2025-06-07 11:48:40 +02:00
Andy Leiserson 6c7f934af6 Update CTS section in README (#7762)
* Update CTS section in README

* gitignore `cts` it even if it is a symlink, but always limit to the repo root.
2025-06-06 14:57:14 -04:00
sagudev 55fd09786a Use composite action for mesa install (#7763)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2025-06-06 10:23:27 -07:00
Andy Leiserson 233a25c1e5 Update to the latest CTS; run it on all platforms and on all PRs (#7752) 2025-06-05 22:04:45 -04:00