Commit graph

66 commits

Author SHA1 Message Date
Peter Van der Beken
62bdf442eb Bug 1640839 - Stop generating a sentinel value at the end of WebIDL enums. r=mccr8,jgilbert,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201344
2024-03-02 07:50:25 +00:00
Peter Van der Beken
4fed5f1271 Bug 1640839 - Add MakeEnumeratedRange helper for WebIDL enums. r=mccr8,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201343
2024-03-02 07:50:24 +00:00
Peter Van der Beken
6d4c6fde36 Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-02 07:50:21 +00:00
Natalia Csoregi
8c2521e9d5 Backed out 13 changesets (bug 1640839) for causing bustage on Element.cpp CLOSED TREE
Backed out changeset 179ceb82c9e5 (bug 1640839)
Backed out changeset 73f498a821f0 (bug 1640839)
Backed out changeset dc2d3d0e0365 (bug 1640839)
Backed out changeset ddc989ac0509 (bug 1640839)
Backed out changeset e595bb3feea8 (bug 1640839)
Backed out changeset c85aca04e27f (bug 1640839)
Backed out changeset 98e8e3a4047a (bug 1640839)
Backed out changeset 59ef180517db (bug 1640839)
Backed out changeset af2f5e293662 (bug 1640839)
Backed out changeset 89aa6d9dc598 (bug 1640839)
Backed out changeset 67b722a722f9 (bug 1640839)
Backed out changeset 24a9665c6ced (bug 1640839)
Backed out changeset d93f199385e9 (bug 1640839)
2024-03-01 18:23:08 +02:00
Peter Van der Beken
763356e4fb Bug 1640839 - Stop generating a sentinel value at the end of WebIDL enums. r=mccr8,jgilbert,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201344
2024-03-01 14:31:15 +00:00
Peter Van der Beken
4fe8e134c0 Bug 1640839 - Add MakeEnumeratedRange helper for WebIDL enums. r=mccr8,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201343
2024-03-01 14:31:15 +00:00
Peter Van der Beken
a1122e9bfc Bug 1640839 - Make WebIDL enum helper function to convert to string return an actual string. r=mccr8,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D201337
2024-03-01 14:31:11 +00:00
Nicolas Silva
b58a1a65c6 Bug 1868672 - Update wgpu to revision ff7b2c399301cca9bcbc5b19a869feb3c29ef785. r=webgpu-reviewers,supply-chain-reviewers,jimb
# Changelog

 * #4807 Bump wasm-bindgen-test from 0.3.38 to 0.3.39
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4807
 * #4830 Use Display instead of Debug to log errors.
   By nical in https://github.com/gfx-rs/wgpu/pull/4830
 * #4755 [naga wgsl-in] Automatic conversions for `var` initializers.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4755
 * #4755 [naga wgsl-in] Automatic conversions for `var` initializers.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4755
 * #4755 [naga wgsl-in] Automatic conversions for `var` initializers.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4755
 * #4832 vulkan: fix multi-planar texture creation
   By xiaopengli89 in https://github.com/gfx-rs/wgpu/pull/4832
 * #4758 [vk] remove (old) unused blocklist for dual source blending
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4758
 * #4828 Remove DX11 backend
   By valaphee in https://github.com/gfx-rs/wgpu/pull/4828
 * #4836 [gl] add support for line and point polygon modes
   By valaphee in https://github.com/gfx-rs/wgpu/pull/4836
 * #4820 Bump futures-lite from 2.0.1 to 2.1.0
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4820
 * #4811 Expose shader validation
   By daxpedda in https://github.com/gfx-rs/wgpu/pull/4811
 * #3507 [wgpu-hal] Inline RayQuery Support
   By daniel-keitel in https://github.com/gfx-rs/wgpu/pull/3507
 * #4726 Fix Javascript exception on repeated `BufferSlice::get_mapped_range` calls
   By DouglasDwyer in https://github.com/gfx-rs/wgpu/pull/4726
 * #4841 Remove `expose-ids` Feature
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4841
 * #4843 Some Minor `wgpu-core` Cleanups
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4843
 * #4844 Work around cbindgen issue
   By nical in https://github.com/gfx-rs/wgpu/pull/4844

Differential Revision: https://phabricator.services.mozilla.com/D195735
2023-12-08 17:49:34 +00:00
Nicolas Silva
0a15b03add Bug 1868143 - Update wgpu to revision 767ac03245ee937d3dc552edc13fe7ab0a860eec. r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler
# Changelog

 * #4708 Fix max_vertex_buffers validation
   By nical in https://github.com/gfx-rs/wgpu/pull/4708
 * #4729 Remove expected failure on AMD/DX12 from msaa example
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4729
 * #4711 [naga] Add `Literal::I64`, for signed 64-bit integer literals.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4711
 * #4736 Bump serde from 1.0.192 to 1.0.193
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4736
 * #4735 [naga]: Let `TypeInner::Matrix` hold a `Scalar`, not just a width.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4735
 * #4741 [naga] Fix type error in test.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4741
 * #4742 [naga]: Make snapshot tests include paths in errors.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4742
 * #4723 Test And Normalize Vertex Behavior on All Backends
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4723
 * #4746 Skip Flaky Test
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4746
 * #4744 Ensure DeviceLostClosureC callbacks have null-terminated message strings
   By bradwerth in https://github.com/gfx-rs/wgpu/pull/4744
 * #4745 [naga wgsl-in] Test hex float suffix handling corner case.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4745
 * #4737 Make the command_encoder_clear_buffer's size an Option<BufferAddress>
   By nical in https://github.com/gfx-rs/wgpu/pull/4737
 * #4701 [naga msl-out] Emit and init `struct` member padding always
   By ErichDonGubler in https://github.com/gfx-rs/wgpu/pull/4701
 * #4701 [naga msl-out] Emit and init `struct` member padding always
   By ErichDonGubler in https://github.com/gfx-rs/wgpu/pull/4701
 * #4701 [naga msl-out] Emit and init `struct` member padding always
   By ErichDonGubler in https://github.com/gfx-rs/wgpu/pull/4701
 * #4701 [naga msl-out] Emit and init `struct` member padding always
   By ErichDonGubler in https://github.com/gfx-rs/wgpu/pull/4701
 * #4733 [naga wgsl-in] Preserve type names in `alias` declarations.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4733
 * #4734 [naga] Make compaction preserve named types, even if unused.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4734
 * #4752 Logging cleanups in device/global.rs
   By nical in https://github.com/gfx-rs/wgpu/pull/4752
 * #4753 Fix Mac Event Loop
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4753
 * #4754 wgpu-hal(vk): Add WGPU_ALLOW_NONCOMPLIANT_ADAPTER
   By i509VCB in https://github.com/gfx-rs/wgpu/pull/4754
 * #4748 Allow Tests to Expect Certain Panic or Validation Messages
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4748
 * #4756 Move to A Single Example Executable
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4756
 * #4747 [naga wgsl-in] Experimental 64-bit floating-point literals.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4747
 * #4747 [naga wgsl-in] Experimental 64-bit floating-point literals.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4747
 * #4761 [naga] Make the `example_wgsl` test build without `wgsl-in` feature.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4761
 * #4769 Conditionally lift API logging from trace to info level
   By nical in https://github.com/gfx-rs/wgpu/pull/4769
 * #4771 Downgrade some of wgpu_core's logging level from info to trace and debug
   By nical in https://github.com/gfx-rs/wgpu/pull/4771
 * #4760 Rename `ALLOW_NONCOMPLIANT_ADAPTER` to `ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER`
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4760
 * #4772 Downgrade resource lifetime management log level to trace.
   By nical in https://github.com/gfx-rs/wgpu/pull/4772
 * #4765 Revamp Examples to Match Website
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4765
 * #4774 Update examples readme files
   By roffs in https://github.com/gfx-rs/wgpu/pull/4774
 * #4781 remove_abandoned fix
   By gents83 in https://github.com/gfx-rs/wgpu/pull/4781
 * #4777 Bump web-sys to 0.3.65
   By torokati44 in https://github.com/gfx-rs/wgpu/pull/4777
 * #4780 Fixes for Skybox and All Examples
   By cwfitzgerald in https://github.com/gfx-rs/wgpu/pull/4780
 * #4782 Remove resources ONLY when needed inside wgpu and not in user land
   By gents83 in https://github.com/gfx-rs/wgpu/pull/4782
 * #4786 Don't keep a strong ref in storage for destroyed resources
   By gents83 in https://github.com/gfx-rs/wgpu/pull/4786
 * #4795 Fix Arcanization changelog
   By a1phyr in https://github.com/gfx-rs/wgpu/pull/4795
 * #4794 Delete/rename now-unused gpu.rs
   By exrook in https://github.com/gfx-rs/wgpu/pull/4794
 * #4794 Delete/rename now-unused gpu.rs
   By exrook in https://github.com/gfx-rs/wgpu/pull/4794
 * #4573 Support nv12 texture format
   By xiaopengli89 in https://github.com/gfx-rs/wgpu/pull/4573
 * #4789 Bump js-sys from 0.3.65 to 0.3.66
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4789
 * #4784 Bump winit from 0.29.3 to 0.29.4
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4784
 * #4798 Bump JamesIves/github-pages-deploy-action from 4.4.3 to 4.5.0
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4798
 * #4800 Bump web-sys from 0.3.65 to 0.3.66
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4800
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4743 Implement WGSL abstract types for global `const` declarations and constructor calls.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4743
 * #4799 Bump wasm-bindgen-futures from 0.4.38 to 0.4.39
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4799
 * #4796 Remove surface extent validation (and thus fix the annoying `Requested size ... is outside of the supported range` warning)
   By Wumpf in https://github.com/gfx-rs/wgpu/pull/4796
 * #4804 Add space to a comment inside make_spirv_raw
   By ComfyFluffy in https://github.com/gfx-rs/wgpu/pull/4804
 * #4803 `features`/`limits` refactors
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4803
 * #4803 `features`/`limits` refactors
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4803
 * #4803 `features`/`limits` refactors
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4803
 * #4803 `features`/`limits` refactors
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4803
 * #4803 `features`/`limits` refactors
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4803
 * #4805 [naga] Improve ConstantEvaluatorError::InvalidCastArg message.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4805
 * #4801 update deno
   By crowlKats in https://github.com/gfx-rs/wgpu/pull/4801
 * #4806 Fixes and changes to the documentation for increasing clarity
   By Blatko1 in https://github.com/gfx-rs/wgpu/pull/4806
 * #4809 [naga wgsl-in] Use a better span for errors in constructors.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4809
 * #4808 [naga wgsl-in] Drop spanless labels from front-end error messages.
   By jimblandy in https://github.com/gfx-rs/wgpu/pull/4808
 * #4822 Fix expected error message
   By teoxoy in https://github.com/gfx-rs/wgpu/pull/4822
 * #4759 Add feature float32-filterable
   By almarklein in https://github.com/gfx-rs/wgpu/pull/4759
 * #4813 Bump core-graphics-types from 0.1.2 to 0.1.3
   By dependabot[bot] in https://github.com/gfx-rs/wgpu/pull/4813

Differential Revision: https://phabricator.services.mozilla.com/D195438
2023-12-04 22:30:03 +00:00
Nicolas Silva
c8f4b69bcd Bug 1865311 - Fix inconsistent destroy/drop naming in webgpu IPC. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D193894
2023-11-17 20:11:22 +00:00
Teodor Tanasoaia
19644885c8 Bug 1859999 - Update wgpu to revision 75989192a9c8f70893882ce0f4373ac217d380c3. r=webgpu-reviewers,supply-chain-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D191400
2023-10-25 13:54:06 +00:00
Nicolas Silva
1977759cef Bug 1846661 - Don't convert gpu limits to double. r=gfx-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D185816
2023-08-10 13:10:28 +00:00
Erich Gubler
ea65de7c7b Bug 1843250: fix(webgpu): clamp required limits properly r=webgpu-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D183938
2023-07-20 15:17:55 +00:00
Erich Gubler
d115221b55 Bug 1843250: refactor(webgpu): move "Alignment" limit name check into "min" check r=webgpu-reviewers,nical
We'll need this for a fix in a second. We have no limits that start with
`min` that _don't_ end in `Alignment` ATM, so this should change no
observable behavior.

Differential Revision: https://phabricator.services.mozilla.com/D183937
2023-07-20 15:17:55 +00:00
Kelsey Gilbert
0fb34553d5 Bug 1812353 - Update GPUSupportedLimits in webgpu.webidl. r=webgpu-reviewers,webidl,saschanaz,jimb,emilio,smaug
* Add validation for requested features and devices for
adapter.requestDevice().
* Promote webgl's AutoAssertCast to mfbt/Casting.h/LazyAssertedCast.

Differential Revision: https://phabricator.services.mozilla.com/D177110
2023-06-12 21:10:11 +00:00
Stanca Serban
7f8803cf62 Backed out changeset 8352bc23343d (bug 1812353) for causing build bustages in Adapter.cpp. CLOSED TREE 2023-06-09 23:42:09 +03:00
Kelsey Gilbert
2e186b9e3a Bug 1812353 - Update GPUSupportedLimits in webgpu.webidl. r=webgpu-reviewers,webidl,saschanaz,jimb,emilio,smaug
* Add validation for requested features and devices for
adapter.requestDevice().
* Promote webgl's AutoAssertCast to mfbt/Casting.h/LazyAssertedCast.

Differential Revision: https://phabricator.services.mozilla.com/D177110
2023-06-09 19:52:39 +00:00
Erich Gubler
a435654157 Bug 1832451 - Vendor wgpu changes. r=webgpu-reviewers,jgilbert
Depends on D177827

Differential Revision: https://phabricator.services.mozilla.com/D177829
2023-05-25 18:01:03 +00:00
Erich Gubler
2d6a22f4d0 Bug 1653164: feat(webgpu): show wgpu* fields for WebGPU adapters in about:support r=webgpu-reviewers,webidl,saschanaz,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D177402
2023-05-10 19:29:32 +00:00
Stanca Serban
32c74afbb2 Backed out 3 changesets (bug 1653164) for causing bp-nu bustages in Adapter.h. CLOSED TREE
Backed out changeset 938fa5409a7a (bug 1653164)
Backed out changeset 1b25345f09e5 (bug 1653164)
Backed out changeset 91185e96b467 (bug 1653164)
2023-05-10 07:59:41 +03:00
Erich Gubler
b8263a791c Bug 1653164: feat(webgpu): show wgpu* fields for WebGPU adapters in about:support r=webgpu-reviewers,webidl,saschanaz,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D177402
2023-05-10 00:46:00 +00:00
Narcis Beleuzu
e506fbfaab Backed out 3 changesets (bug 1653164) for build bustages on Adapter.h . CLOSED TREE
Backed out changeset 6f36f0a844be (bug 1653164)
Backed out changeset 86be7d9d8fa1 (bug 1653164)
Backed out changeset 984a479a81d8 (bug 1653164)
2023-05-10 01:42:57 +03:00
Erich Gubler
22ebce3993 Bug 1653164: feat(webgpu): show wgpu* fields for WebGPU adapters in about:support r=webgpu-reviewers,webidl,saschanaz,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D177402
2023-05-09 21:47:34 +00:00
Stanca Serban
5c526ee10b Backed out 3 changesets (bug 1653164) for causing builds bustages in Adapter.h. CLOSED TREE
Backed out changeset 037d37f4eb71 (bug 1653164)
Backed out changeset 32ca1ab63d70 (bug 1653164)
Backed out changeset a996e5517aa1 (bug 1653164)
2023-05-09 21:43:27 +03:00
Erich Gubler
cc28365448 Bug 1653164: feat(webgpu): show wgpu* fields for WebGPU adapters in about:support r=webgpu-reviewers,webidl,saschanaz,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D177402
2023-05-09 17:47:26 +00:00
Erich Gubler
2535cd051f Bug 1830336: fix(webgpu): support depth32float-stencil8 feature/texture format r=webgpu-reviewers,webidl,saschanaz,jimb
Differential Revision: https://phabricator.services.mozilla.com/D176710
2023-05-09 17:30:31 +00:00
Kelsey Gilbert
fcc4ea963f Bug 1814101 - Add requestAdapterInfo for webgpu. r=gfx-reviewers,webidl,jimb,smaug
Like the old `name` attribute it replaces, it's always empty for now.

Differential Revision: https://phabricator.services.mozilla.com/D174817
2023-04-12 18:51:46 +00:00
Cristina Horotan
04a340a0fe Backed out changeset 206c3002c228 (bug 1814101) for causing mochitest failures at test_interfaces_secureContext.html CLOSED TREE 2023-04-12 10:43:18 +03:00
Kelsey Gilbert
79f2c28303 Bug 1814101 - Add requestAdapterInfo for webgpu. r=gfx-reviewers,webidl,jimb,smaug
Like the old `name` attribute it replaces, it's always empty for now.

Differential Revision: https://phabricator.services.mozilla.com/D174817
2023-04-12 05:50:38 +00:00
Kagami Sascha Rosylight
11340de5d4 Bug 1768189 - Part 40: Apply modernize-concat-nested-namespaces to dom/webauthn/PublicKeyCredential.h ... r=andi
Depends on D145775

Differential Revision: https://phabricator.services.mozilla.com/D145776
2022-05-09 20:41:19 +00:00
Andrew Osmond
6e033cd6a3 Bug 1709951 - Make WebGPU handle GPU process loss. r=gfx-reviewers,webidl,jgilbert,smaug
Differential Revision: https://phabricator.services.mozilla.com/D143247
2022-04-27 21:13:21 +00:00
Dzmitry Malyshau
e7c5d38a9a Bug 1751718 - Reject WebGPU device promise on wrong features and limits r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D136770
2022-01-28 00:08:53 +00:00
Dzmitry Malyshau
3e51a513a1 Bug 1743667 - Fix GPUSupportedFeatures on WebGPU device r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D133907
2021-12-15 20:31:34 +00:00
Dzmitry Malyshau
0b48a2d1e1 Bug 1743667 - Hook up WebGPU device limits and features r=jgilbert,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D133280
2021-12-10 01:09:04 +00:00
Dzmitry Malyshau
c4c52fc4b6 WIP: Bug 1622846 - Support WebGPU adapter isFallbackAdapter r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D133208
2021-12-08 15:54:26 +00:00
Dzmitry Malyshau
1da5651ba2 Bug 1622846 - Update WebGPU API to latest and wgpu-core to 0.9 r=webidl,jgilbert,jimb,emilio
This *mostly* gets us the latest WebIDL API of WebGPU. There is a few limits we are missing, and maybe some things I didn't notice.
But it gets us the new `GPUCanvasContext`, `GPUSupportedLimits`, and `GPUVertexStepMode`.

Differential Revision: https://phabricator.services.mozilla.com/D120764
2021-08-18 14:11:21 +00:00
Brindusan Cristian
1cdd46e3ba Backed out changeset e34f15d5e74d (bug 1622846) for causing linux toolchain build bustages.
CLOSED TREE
2021-08-18 07:58:38 +03:00
Dzmitry Malyshau
6d7cfc6c90 Bug 1622846 - Update WebGPU API to latest and wgpu-core to 0.9 r=webidl,jgilbert,jimb,emilio
This *mostly* gets us the latest WebIDL API of WebGPU. There is a few limits we are missing, and maybe some things I didn't notice.
But it gets us the new `GPUCanvasContext`, `GPUSupportedLimits`, and `GPUVertexStepMode`.

Differential Revision: https://phabricator.services.mozilla.com/D120764
2021-08-17 15:22:45 +00:00
Noemi Erli
a523fe1ad1 Backed out changeset 3cb3442efede (bug 1622846) for causing Bug 1722702 CLOSED TREE 2021-07-29 20:14:46 +03:00
Dzmitry Malyshau
9963bd1ee1 Bug 1622846 - Update WebGPU API to latest and wgpu-core to 0.9 r=webidl,jgilbert,jimb,emilio
This *mostly* gets us the latest WebIDL API of WebGPU. There is a few limits we are missing, and maybe some things I didn't notice.
But it gets us the new `GPUCanvasContext`, `GPUSupportedLimits`, and `GPUVertexStepMode`.

Differential Revision: https://phabricator.services.mozilla.com/D120764
2021-07-27 22:37:46 +00:00
Dzmitry Malyshau
19e0b39108 Bug 1705531 - Hook up Adapter to Limits and Features for CC r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D112269
2021-04-16 21:08:11 +00:00
Dzmitry Malyshau
5249d3e499 Bug 1697509 - Fix WebGPU shaders and adapter limits r=jgilbert
Expose adapter limits, hook up spirv-cross

Differential Revision: https://phabricator.services.mozilla.com/D107840
2021-03-16 22:57:08 +00:00
Dzmitry Malyshau
27e5308381 Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug
This is another WebGPU API update, it picks up a lot of changes that were made recently:
  - new bind group layout
  - new render pipeline descriptor
  - new vertex formats
  - limits
  - compressed texture formats
  - index format
  - query sets
  - and more small ones!

It also brings in the updated `gfx/wgpu` to support these API changes.

Differential Revision: https://phabricator.services.mozilla.com/D107013
2021-03-04 21:25:46 +00:00
Brindusan Cristian
cae8a0ef30 Backed out changeset 0c0c723b0a0e (bug 1622846) for build bustages in Device.h. CLOSED TREE 2021-03-04 22:02:58 +02:00
Dzmitry Malyshau
65199ec16a Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug
This is another WebGPU API update, it picks up a lot of changes that were made recently:
  - new bind group layout
  - new render pipeline descriptor
  - new vertex formats
  - limits
  - compressed texture formats
  - index format
  - query sets
  - and more small ones!

It also brings in the updated `gfx/wgpu` to support these API changes.

Differential Revision: https://phabricator.services.mozilla.com/D107013
2021-03-04 17:48:28 +00:00
Dzmitry Malyshau
dcf75e7f03 Bug 1622261 - Refactor the ID recycling to always cycle through the GPU process
Previously, we kept the object IDs managed on content side only.
The GPU side would work with given indices.
When an object is destroyed, we'd free the ID on the content side and signal the GPU to delete the object.
Problem is that on the GPU process the object may still be kept alive for as long as any dependants are alive.

What this change is doing - hooking up the callbacks to the *actual* freeing of IDs on the GPU side.
These callbacks end up in messages from WebGPUParent to WebGPUChild, and only then the IDs are freed
on the content side and able to be reused.

Differential Revision: https://phabricator.services.mozilla.com/D67211

--HG--
extra : moz-landing-system : lando
2020-03-23 07:54:08 +00:00
Boris Zbarsky
9b0b56bfc7 Bug 1612213 part 3. Switch Promise::RejectWithDOMException consumers to new convenience methods. r=smaug,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D61269

--HG--
extra : moz-landing-system : lando
2020-02-03 20:37:32 +00:00
Dzmitry Malyshau
be7fae486d Bug 1609175 - WebGPU bind groups and compute pipelines r=jgilbert,webidl,smaug,bzbarsky
Adds support for bind groups and compute pipelines
The end goal of this PR is to run the compute example.

Differential Revision: https://phabricator.services.mozilla.com/D60746

--HG--
extra : moz-landing-system : lando
2020-01-24 16:27:09 +00:00
Noemi Erli
835cec6cf9 Backed out changeset 136b3044f6a6 (bug 1609175) for causing build bustages in WebGPUChild.cpp CLOSED TREE 2020-01-24 17:20:31 +02:00
Dzmitry Malyshau
73eff15f2c Bug 1609175 - WebGPU bind groups and compute pipelines r=jgilbert,webidl,smaug,bzbarsky
Adds support for bind groups and compute pipelines
The end goal of this PR is to run the compute example.

Differential Revision: https://phabricator.services.mozilla.com/D60746

--HG--
extra : moz-landing-system : lando
2020-01-24 05:05:34 +00:00