Commit Graph
10983 Commits
Author SHA1 Message Date
bolshoytoster fa6d834891 Reduce bloat from wgsl::Error::as_parse_error (#9944) 2026-08-03 10:55:45 -07:00
Jim Blandy c2d5fa49da [naga] Test validation of function/entry point name collision.
Unlike WGSL, Naga IR permits functions to have conflicting names, and
entry points must only have distinct names if they are for the same
shader stage. Document and test this.
2026-08-03 08:22:34 -07:00
Jim Blandy faac3bb16b [naga] Document entry_point argument to process_overrides. 2026-08-03 07:40:24 -07:00
renovate[bot] d45fdcd11a Update Rust crate pollster to v1 (#9996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-03 11:08:39 +00:00
Kevin Reid 9f5c71ffb9 Make ForceShaderModelToken’s functions const. 2026-08-03 06:34:29 -04:00
Kevin Reid c150de0ba7 Add inherent pub const fn default() to various types.
The default functions are generated using a `macro_rules_attribute`
emulated derive macro, just fancy enough to work. It does not support
structs with generics, so `*Descriptor`s are left alone for now.

When Rust const traits stabilize, we can replace this with real const
traits.
2026-08-03 06:34:29 -04:00
Andy Leiserson 9c05b85ce5 fix(hal/vulkan): Use queue family index modified by device open callback (#9965) 2026-08-03 06:19:50 -04:00
Jim Blandy b991e6025d [core] Use minimum_binding_size terminology in validation. (#9988) 2026-08-03 04:58:25 -04:00
Jim Blandy de856fc605 [core] Rename Varying::Local to UserDefined. Doc fixes. (#9987) 2026-08-03 04:56:58 -04:00
Jim Blandy 6150c8239f [core]: Delete unused field EntryPoint::spec_constants. (#9983) 2026-08-03 04:54:52 -04:00
Jim Blandy a05a2b27d4 [core] Promote unexpected varying types to log::error. (#9982) 2026-08-03 04:53:22 -04:00
Andy Leiserson 7a655581ff feat(core): Expose descriptor validation separately from request_device (#9967) 2026-07-30 18:18:49 +00:00
c079e55f53 fix: emit dimension-correct HLSL texture sample offsets (#9951)
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-07-30 12:58:50 +00:00
Jim Blandy 5205d3d1e5 [naga] Update Emit documentation. (#9968) 2026-07-30 06:33:39 -04:00
Kevin Reid d0ecda96cd Replace wgpu-macros package with use of macro_rules_attribute. (#9963) 2026-07-30 06:16:43 -04:00
AdrianEddyandErich Gubler f9f55b7d51 fix(core): drop PendingSubmission's guards in reverse acquisition order (#9960)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-07-30 06:07:11 -04:00
sagudev ecf8932500 [deno] Use Arced resources instead of Global (aka crate::Instance in deno)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-30 04:54:40 -04:00
sagudev bf063c0a4a [core] Make more stuff public for #5121
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-30 04:54:40 -04:00
Nazar Mokrynskyi fb1c777b2f naga: fix panic parsing SPIR-V subgroup reduce/scan/ballot ops 2026-07-29 18:01:48 -07:00
Erich Gubler 2eddc8c7b2 test(cts): assume all maxInterStageShaderVariables tests pass (#9943) 2026-07-29 17:30:22 +02:00
Sam b340ef11c6 Document why no Copy impl on wgt::Limits (#9893)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-29 17:15:31 +02:00
Andy Leiserson 22c5a7020b fix(core): Add missing shader output vs. color target validation (#9939) 2026-07-28 23:25:53 +00:00
Andy Leiserson 9fd1f02c2d fix(core): Clean up resources when Device::new fails (#9930) 2026-07-28 15:56:34 -07:00
Marc Stampfli 4fe6176a65 Remove never-constructed CreateBlasError::InvalidAabbStride (#9935) 2026-07-28 05:36:13 -04:00
Andy Leiserson 1a3a4cc27d chore(deps): Disable renovate minimumReleaseAge (#9927) 2026-07-27 07:43:02 -04:00
Tom Schuster 83b9fa1661 WebGPU: Handle GpuInternalError (#9919) 2026-07-25 19:14:50 +00:00
Sam 4e3117a2e5 [core] Always return surface wrapped in arc (#9916)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-25 20:39:45 +02:00
Sam 27597cf960 [core] Inherit InstanceFlags in Device via Adapter (#9915)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-25 20:34:55 +02:00
Sam 34755a7163 [core] device_create_texture_view -> Texture::create_view (#9895)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-25 20:23:50 +02:00
Rui He a37b252881 fix(vulkan): build pipeline barrier based on queue family properties (#9594) 2026-07-25 18:01:30 +00:00
Erich Gubler cb8932a994 refactor(core): qualify features_to_naga_capabilities 2026-07-25 07:48:35 -07:00
Marc Stampfli 4d4c1e1888 docs: correct BlasAabbGeometry stride reference and document AABB layout (#9934) 2026-07-25 18:58:33 +12:00
ozongziandErich Gubler 8b419de090 hal/vulkan: add OpenHarmony surface support (#9908)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-07-24 07:46:03 -04:00
Erich Gubler bb8f23e343 ci: fix UX for prettier failures (#9926) 2026-07-23 11:01:25 -07:00
dependabot[bot] d5977df452 Bump body-parser from 2.2.2 to 2.3.0 in /tests/wasm/runner (#9920)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-22 18:13:35 -07:00
Jim Blandy 4b8e994585 Doc fixes for wgpu_types::Backend::Gl. 2026-07-22 13:23:47 -07:00
Erich Gubler d9423aa657 refactor(hal): move raw-gles' glutin deps section (#9925) 2026-07-22 17:26:57 +02:00
Jim BlandyandClaude Sonnet 5 f892b2e235 spv-out: don't dynamically index PushConstant vectors with OpAccessChain
Per VUID-RuntimeSpirv-None-04745, all accesses into a PushConstant-storage-class
variable that are arrays must use dynamically uniform indices; this restriction
also applies to vectors. Naga was emitting `OpAccessChain` with per-invocation
(non-uniform) indices directly into push-constant vectors, which is undefined
behavior under that rule -- observed on RADV as every invocation silently
reading element 0 of the vector.

Add a special case to `write_checked_load`, alongside the existing matCx2
ones, that loads the whole vector and uses `OpVectorExtractDynamic` instead,
which isn't subject to the restriction.

Fixes gfx-rs/wgpu#8612.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 12:05:24 -07:00
Andy Leiserson c97d22fff4 fix(core): Add some missing validity checks (#9913) 2026-07-21 07:36:40 -04:00
sagudev 0eb5b623df Replace all occurrences of Global:: in rustdocs with methods on Resources
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-20 17:36:36 -07:00
sagudev 3c51fc05b5 remove stale profiling scopes
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-20 17:36:36 -07:00
Sam 43b7ff9220 [core] Move Device::configure_surface to Surface::configure (#9898)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-20 17:31:53 -07:00
Andy Leiserson b2be758b64 fix(naga spv-out): Sanitize debug strings (#9904) 2026-07-20 20:41:22 +00:00
Luo Zhihao 0ae95c7365 Fix flush_immediates out of range (#9906) 2026-07-20 19:38:08 +00:00
Luo Zhihao 77c17d24b0 Fix required immediate slots calculation and panics when slots overflow (#9725) 2026-07-20 12:06:14 -07:00
Zac Harrold e5e01423fd [naga]: Test all supported no_std features in CI 2026-07-20 16:36:17 +02:00
Zac Harrold e20fd3852f [naga-types]: Test no_std compatibility in CI 2026-07-20 16:36:17 +02:00
Jim Blandy 66794b9e0f Update Mesa version to 26.1.3.
In `.github/workflows/artifacts.yml`, update `MESA_VERSION` to 26.1.3.

Hopefully that incorporates the fix for [mesa#15489], which is blocking
[wgpu#9903].

[mesa#15489]: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15489
[wgpu#9903]: https://github.com/gfx-rs/wgpu/pull/9903
2026-07-20 06:49:44 -07:00
Jim Blandy 4fc17708e6 Fix cooperative matrix tests on RADV and llvmpipe. (#9892) 2026-07-20 08:33:03 -04:00
Andy Leiserson ef79a923cf hal/vulkan: With internal_error_panic, panic on Vulkan validation errors (#9879) 2026-07-17 12:41:57 -07:00