Commit Graph
199 Commits
Author SHA1 Message Date
ecoricemonandConnor Fitzgerald cbc20f698c fix(naga): Check domain and overflow in const-eval (#9224)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-16 11:22:30 -06:00
renovate[bot] 71706c3d5d chore(deps): update cts digest to e9adcf8 (#9237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 13:50:44 +00:00
Andy Leiserson b559ace80e Waive failing test on dx12 (#9227)
See #9226
2026-03-14 21:44:37 +00:00
Andy Leiserson ca3239e689 chore!: Move PRIMITIVE_INDEX feature into the WebGPU group (#9101)
Enable relevant CTS tests.
2026-03-13 13:52:14 -07:00
teoxoy 83c906f99f [hal] add missing WebGPU adapter capability guarantees 2026-03-13 16:24:43 +01:00
teoxoy c819484751 [metal] fix limits
Fixes #8173.
2026-03-13 16:24:43 +01:00
Andy Leiserson d540c4566e test(cts_runner): Use DXC by default 2026-03-10 16:57:39 -07:00
Andy Leiserson a16ca5cb42 feat(deno): Add DENO_WEBGPU_DX12_COMPILER env var
- Use the env var to select DXC in cts_runner
- Sync a few other env vars from `ci.yml`
2026-03-10 16:57:39 -07:00
ecoricemon eb3bc87b21 fix(naga): Implement constant matrix add/sub/mul (#9162)
* fix(naga): Implement constant matrix operations

Implement binary operations in naga constant evaluator
- multiplication on vector-matrix, matrix-vector, and matrix-matrix
- addition/subtraction on matrix-matrix

* Related CTS
webgpu:shader,validation,expression,matrix,* : 1678/1881 (89.21%) -> 1737/1881 (92.34%)
> remaining fail : overflow/underflow (126), atomic (18)

* naga snapshots updated automatically

* chore: Update naga snapshots
2026-03-10 22:09:00 +01:00
Andy Leiserson ce631c139f fix(naga): Evaluate compound assignment LHS before RHS (#9181) 2026-03-09 23:33:27 +00:00
renovate[bot] 4b81f35cbe chore(deps): update cts digest to 47c3b4f (#9173)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-09 14:40:40 -04:00
Andy Leiserson 14ea13f11f fix(naga): Reject matrix negation in WGSL (#9157)
* fix(naga): Reject matrix negation

* Polyfill matrix negation for GLSL
2026-03-05 18:12:37 -05:00
Andy Leiserson 7f13acbf82 test(cts): List updates (#9160) 2026-03-04 15:35:24 -08:00
Andy Leiserson 7a17f66aa5 Tweak some limit reporting (#9118)
* Dummy implementation of max_storage_{buffers,textures}_in_*_stage limits

* hal(vulkan, dx12): Clamp per-stage binding limits at max_bindings_per_bind_group - 1

* Update CHANGELOG

* Allocate per-stage limits out of max_bindings_per_bind_group

* Fix typo and adjust hal's `log` dependency
2026-03-04 18:39:47 +01:00
ecoricemon 0d166c51a8 fix(naga): Allow a trailing comma in WGSL attributes (#9127)
* fix(naga): Allow trailing comma in WGSL attributes

Allow trailing comma token in WGSL attributes such as '@location(1,)'

CTS change
* webgpu:shader,validation,shader_io,*
 - Pass ratio: 2369/2891 (81.94%) -> 2380/2891 (82.32%)

* Update CTS list related to #8892
2026-03-03 18:06:06 +01:00
ecoricemon b6c605603f fix(naga): Validate presence of pipeline constants (#9133)
* fix(naga): validate presence of pipeline constants

Cause an error if a pipeline constant identifier doesn't exist in the shader

CTS change
* webgpu:api,validation,compute_pipeline:overrides,identifier:* : 12/26 (46.15%) -> 26/26 (100%)

* fix: Sort test.lst
2026-03-03 15:25:26 +01:00
Brendon Daugherty 3dc03bc23f fix(naga): Use wrapping arithmetic for dot on concrete ints (#9142) 2026-03-03 15:06:18 +01:00
Andy Leiserson 68b26a65f6 fix(deno): Report the correct type of error for an invalid writeMask (#9144) 2026-03-03 14:42:17 +01:00
renovate[bot] c70d4ed332 chore(deps): update cts digest to cdeef99 (#9136)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 10:33:55 -05:00
Teodor Tanasoaia e114d2f0a7 Add support for gaps in bind group layouts & update relevant validation (#9034)
* [wgpu-core] add support for optional BG & BGL entries

* [wgpu] allow gaps in bind group layouts

And allow unbinding in the web backend.

* adapt tests

* add changelog entry

* [wgpu] remove generic from `PipelineLayoutDescriptor`
2026-02-25 19:47:36 +01:00
Andy Leiserson aad2a00f4d fix(core): Blend factor must be one when blend op is min/max (#9110) 2026-02-25 18:22:54 +01:00
Andy Leiserson b09a919c6a DepthStencilState validation fixes (#8840)
* Make `depth_compare` and `depth_write_enabled` optional

These fields are optional in the WebGPU API. Having them optional in the
wgpu API as well keeps validation logic centralized in wgpu-core.

Fixes #8830

* Remove `DepthStencilStateIdl`
2026-02-25 14:59:48 +01:00
Andy Leiserson 3676e0e247 fix(core): Validate occlusion query set type in begin_render_pass (#9086) 2026-02-23 14:38:46 -08:00
Andy Leiserson 73624c9892 chore(deno): Implement is_fallback_adapter and validate feature level strings (#9043) 2026-02-23 11:10:43 -08:00
renovate[bot] 50aa1d623f chore(deps): update cts digest to b25f416 (#9095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-23 07:37:44 -07:00
Andy LeisersonandJim Blandy c4365b9818 fix(naga): Improve validation of non-constructible types (#8873)
* fix(naga): Improve validation of non-constructible types

Fixes #4720
Fixes the test cases in #7393, but not the issue itself

* Zero-constructing texture_2d is no longer caught by front end.

* Define `TypeInner::is_constructible`; use it in `front::wgsl`.

Add a new method `TypeInner::is_constructible`, that determines
whether WGSL considers a type [constructible]. Use this to generate
errors in the WGSL front end. Assert in validation that it matches the
judgment of `Validator::validate_type`.

[constructible]: https://gpuweb.github.io/gpuweb/wgsl/#constructible-types

---------

Co-authored-by: Jim Blandy <jimb@red-bean.com>
2026-02-18 11:08:53 -08:00
renovate[bot] 1b4c22cf68 chore(deps): update cts digest to c299b04 (#9059)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-17 09:55:47 -07:00
Andy Leiserson e59fb7d423 fix(core): Calculate total number of bindings correctly (#8997) 2026-02-12 14:29:56 +01:00
Jim Blandy 7c74c1d606 [cts_runner] Fix link to instructions for running CTS tests. (#9033) 2026-02-11 11:29:26 -05:00
renovate[bot] 47ce3cbd24 chore(deps): update cts digest to 95fd0a5 (#9025) 2026-02-09 23:41:55 -08:00
Andy Leiserson 6be68cbc65 fix(deno): Remove early validation of depthClearValue (#9000) 2026-02-04 19:03:51 -07:00
Andy Leiserson 3b55cf9b8c fix(metal): Don't panic on OOM in create_buffer (#8994) 2026-02-03 19:42:31 -07:00
Andy Leiserson 835560396f test(cts): Enable some external texture tests (#8901) 2026-02-03 15:58:21 -08:00
Andy Leiserson 6e16e04a44 fix(naga): Detect overflowing const shift amounts at compile time 2026-02-03 12:59:48 +01:00
Andy Leiserson afbb31eb1a fix(naga): Disallow const shifts of scalar by vector or vice-versa 2026-02-03 12:59:48 +01: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
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
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 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 a24965f8b7 fix(naga): Coerce matrix initializers to concrete floats (#8817) 2026-01-29 18:00:26 -08:00
Andy LeisersonandJim 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
Timo KöstersandErich 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
Andy Leiserson 7e5f016ca7 chore(cts): Enable test fixed by objc2 (#8950)
Closes #7357
2026-01-28 07:56:16 -08:00
Andy Leiserson 965b7cbe79 feat(deno): Associate external memory with GPUDevice
Enable some tests that previously OOMed in CI.
2026-01-27 13:11:40 -08:00
renovate[bot] 2002283cce chore(deps): update cts digest to 0fad1ec (#8926)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-26 13:28:10 -05:00
Andy Leiserson 6495ef3f9d fix(naga): Calculate 1D distance using abs (#8903) 2026-01-26 13:32:45 +01:00
Andy Leiserson 6b5a416865 fix(naga): Use wrapping arithmetic for u32 const eval (#8912)
Fixes one part of #8900
2026-01-22 14:50:37 -08:00
Andy Leiserson 046a1b4ce5 feat(deno): implement WGSLLanguageFeatures (#8884) 2026-01-22 10:42:01 -08:00