Commit Graph
249 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez 1bd0da8bf7 Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-05-02 22:04:17 +00:00
iulian moraru 480fc572da Revert "Bug 2036439, Bug 2033243 - Deal with ownerGlobal -> documentGlobal rename in extensions. r=robwu,home-newtab-reviewers,mconley" for causing newtab failures.
This reverts commit 4f62279d01.

Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug"

This reverts commit 91a4ece356.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 5a95a889e1.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 7177a68e67.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 5263254690.
2026-05-02 16:43:35 +00:00
Emilio Cobos Álvarez 7177a68e67 Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-05-02 15:33:23 +00:00
rperta d4cc71008d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" on developer request
This reverts commit e58e122135.

This reverts commit 84ca206f3e.

This reverts commit a7945292ed.

This reverts commit 367d83d299.
2026-05-02 06:20:30 +00:00
Emilio Cobos Álvarez a7945292ed Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-05-01 11:58:14 +00:00
agoloman c814da612d Revert "Bug 2033243 - Other miscellaneous ownerGlobal-related naming removal. r=dom-core,smaug" for causing multiple failures.
This reverts commit c7246654bc.

Revert "Bug 2033243 - BindToOwner -> BindToGlobal. r=dom-core,smaug"

This reverts commit 8873ddf33c.

Revert "Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug"

This reverts commit 8bf999e03c.

Revert "Bug 2033243 - Replace ownerGlobal with documentGlobal, and stop exposing ownerGlobal to JS. r=firefox-desktop-core-reviewers ,webidl,joschmidt,perftest-reviewers,sparky,smaug,mossop"

This reverts commit 7dea1af2e0.
2026-04-30 20:13:14 +00:00
Emilio Cobos Álvarez 8bf999e03c Bug 2033243 - Rename GetOwnerGlobal to GetRelevantGlobal. r=dom-core,media-playback-reviewers,credential-management-reviewers,webrtc-reviewers,dom-storage-reviewers,firefox-style-system-reviewers,dimi,janv,dshin,aosmond,smaug
As per the HTML terminology (https://html.spec.whatwg.org/#relevant)

Automatic rename using sed + lints.

Differential Revision: https://phabricator.services.mozilla.com/D297184
2026-04-30 17:47:11 +00:00
Teodor Tanasoaia 902def3633 Bug 2031993 - Update wgpu to revision 0b4bdaf9cea213ce614405a834ff049b9dfba103. r=webgpu-reviewers,supply-chain-reviewers,webidl,smaug,aleiserson
Differential Revision: https://phabricator.services.mozilla.com/D294416
2026-04-17 11:12:13 +00:00
Ashley Hale 14c6697842 Bug 2012850 - Add TransferFunction to TextureHost and PiecewiseGamma to support HLG transfer function r=tnikkel,bradwerth,gfx-reviewers,media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D287078
2026-03-31 21:37:23 +00:00
rperta 2edb44ad27 Revert "Bug 2012850 - Add TransferFunction to TextureHost and PiecewiseGamma to support HLG transfer function r=tnikkel,bradwerth,gfx-reviewers,media-playback-reviewers,alwu" for causing build bustages at DCLayerTree.cpp
This reverts commit 2550eb5e9b.
2026-03-31 01:46:47 +00:00
Ashley Hale 2550eb5e9b Bug 2012850 - Add TransferFunction to TextureHost and PiecewiseGamma to support HLG transfer function r=tnikkel,bradwerth,gfx-reviewers,media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D287078
2026-03-31 00:24:42 +00:00
Sylvestre Ledru 9eb1a31a98 Bug 2023419 - Remove Emacs/Vim modelines from dom/ r=emilio,media-playback-reviewers,webidl,padenot
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287843
2026-03-16 21:02:32 +00:00
Andy Leiserson 29e824f307 Bug 2019412 - Update wgpu to e114d2f0 (2026-02-25) r=webgpu-reviewers,supply-chain-reviewers,webidl,smaug,teoxoy
Differential Revision: https://phabricator.services.mozilla.com/D284933
2026-02-27 20:36:24 +00:00
Jim Blandy cb0491c7ba Bug 2014617: Remove redundant constructors in WebGPU bindings. r=webgpu-reviewers,teoxoy
Remove unnecessary explicit `mfbt::RefPtr` construction from
initializer lists in `dom/webgpu` code. Use `std::move` where
appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D281895
2026-02-09 20:29:52 +00:00
Andy Leiserson 2fdfd6c735 Bug 1980891 - Color attachments should be nullable r=webgpu-reviewers,webidl,smaug,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D280125
2026-01-23 22:57:10 +00:00
Erich Gubler 4a5a31829a Bug 2012161 - fix(webpgu): validate count of GPUBindGroupLayoutDescriptor.entries' variants in GPUDevice.createBindGroupLayout r=webgpu-reviewers,teoxoy
This adds validation for both having _no_ type specified, and having
more than one specified. This should actually satisfy the spec. calling
for it ([ref](https://www.w3.org/TR/webgpu/#dom-gpudevice-createbindgrouplayout)):

> Device timeline initialization steps:
>
> 1. If any of the following conditions are unsatisfied generate a validation error, invalidate layout and return.
>
>     …
>
>     - For each GPUBindGroupLayoutEntry entry in descriptor.entries:
>
>         - Exactly one of entry.buffer, entry.sampler, entry.texture, entry.storageTexture, and entry.externalTexture is provided.
>
>         …

Differential Revision: https://phabricator.services.mozilla.com/D275013
2026-01-23 17:40:20 +00:00
Teodor Tanasoaia d188db9360 Bug 2005105 - Fix race between checking for promise state and settling it. r=webgpu-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D279654
2026-01-23 17:34:09 +00:00
Teodor Tanasoaia c3cd2ab853 Bug 2005105 - Make all mPendingXPromises fields private and add enqueue/dequeue methods to access them. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D279653
2026-01-23 17:34:06 +00:00
Teodor Tanasoaia 037844f05f Bug 2005105 - Prevent reentrancy by dispatching runnables that resolve/reject promises. r=webgpu-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D279633
2026-01-23 17:33:58 +00:00
Jim Blandy 91f63d6bae Bug 2005294: Update wgpu to upstream 3f02781b (2025-12-16) r=webgpu-reviewers,supply-chain-reviewers,nical,aleiserson
- Update wgpu crates to trunk commit 3f02781b. This is wgpu 28.0.0.

- Update CTS expectations. Many tests promoted from backlog!

- Adjust `wgpu_bindings::client::BindGroupEntry` to allow zero to be
  passed as a buffer binding size. With wgpu#8734, wgpu_core
  validation will catch this and report it properly,

- Pass `None` for the `telemetry` argument to `wgpu_core::global::Global::new`;
  bug 1980057 will fill this in with a real telemetry struct.

- Adapt to new `DontCare` variant in `wgc::command::LoadOp`. Forbid
  use of `DontCare` in the GPU process. In generated C++ bindings for
  wgpu-types, substitute our own definition of `WGPULoadOpDontCare`,
  since we don't use this and cbindgen can't create correct C++ for
  zero-sized types.

- Include `subgroup_min_size` and `subgroup_max_size` in
  `AdapterInformation` struct.

- Adapt to upstream terminology change: "push constants" are now
  "immediate data". Delete unused function
  `wgpu_render_bundle_set_push_constants`.

- Don't bother to lock the value of `wgpu_hal::metal::Device::raw_device`. As of
  wgpu#8168, this function simply returns a `&metal::Device` directly.

- Delete our `VkImageHolder` type, and use `wgpu_hal::vulkan`'s
  very nice `TextureMemory` enum instead.

- Include a delta audit for the wgpu crates from version 27.0.0 to 28.0.0, since
  these entries are more valuable to people importing our `audits.toml` file
  than entries for specific git commits.

- Update metal to 0.33.0.

- Update vendored ron to 0.12.0. Delta audit is already present in
  `supply-chain/audits.toml`. Update webrender to use this as well.

- Vendor new ron dependency typeid 1.0.3. This is a very small crate.
  Trust entry is already present in `supply-chain/audits.toml`.

- Delete dependencies `gpu-alloc` and `gpu-alloc-types` from `third_party/rust`.
  These are no longer needed, since all `wgpu-hal` backends now use the
  `gpu-allocator` crate.

- Update WebRender's local `Cargo.lock` to match the top-level's
  `once_cell`, `ron`, and `typeid` entries.

Differential Revision: https://phabricator.services.mozilla.com/D275914
2025-12-23 12:44:44 +00:00
Alexandru Marc 5ae1543dc9 Revert "Bug 2005294: Update wgpu to upstream 3f02781b (2025-12-16) r=webgpu-reviewers,supply-chain-reviewers,nical,aleiserson" for causing wrench failures
This reverts commit 7bc462c09b.
2025-12-23 10:13:58 +00:00
Jim Blandy 7bc462c09b Bug 2005294: Update wgpu to upstream 3f02781b (2025-12-16) r=webgpu-reviewers,supply-chain-reviewers,nical,aleiserson
- Update wgpu crates to trunk commit 3f02781b. This is wgpu 28.0.0.

- Update CTS expectations. Many tests promoted from backlog!

- Adjust `wgpu_bindings::client::BindGroupEntry` to allow zero to be
  passed as a buffer binding size. With wgpu#8734, wgpu_core
  validation will catch this and report it properly,

- Pass `None` for the `telemetry` argument to `wgpu_core::global::Global::new`;
  bug 1980057 will fill this in with a real telemetry struct.

- Adapt to new `DontCare` variant in `wgc::command::LoadOp`. Forbid
  use of `DontCare` in the GPU process. In generated C++ bindings for
  wgpu-types, substitute our own definition of `WGPULoadOpDontCare`,
  since we don't use this and cbindgen can't create correct C++ for
  zero-sized types.

- Include `subgroup_min_size` and `subgroup_max_size` in
  `AdapterInformation` struct.

- Adapt to upstream terminology change: "push constants" are now
  "immediate data". Delete unused function
  `wgpu_render_bundle_set_push_constants`.

- Don't bother to lock the value of `wgpu_hal::metal::Device::raw_device`. As of
  wgpu#8168, this function simply returns a `&metal::Device` directly.

- Delete our `VkImageHolder` type, and use `wgpu_hal::vulkan`'s
  very nice `TextureMemory` enum instead.

- Include a delta audit for the wgpu crates from version 27.0.0 to 28.0.0, since
  these entries are more valuable to people importing our `audits.toml` file
  than entries for specific git commits.

- Update metal to 0.33.0.

- Update vendored ron to 0.12.0. Delta audit is already present in
  `supply-chain/audits.toml`. Update webrender to use this as well.

- Vendor new ron dependency typeid 1.0.3. This is a very small crate.
  Trust entry is already present in `supply-chain/audits.toml`.

- Delete dependencies `gpu-alloc` and `gpu-alloc-types` from `third_party/rust`.
  These are no longer needed, since all `wgpu-hal` backends now use the
  `gpu-allocator` crate.

Differential Revision: https://phabricator.services.mozilla.com/D275914
2025-12-23 09:28:23 +00:00
Teodor Tanasoaia ec8a6a54a0 Bug 1973591 - Avoid freeing swapchain buffer IDs too early. r=webgpu-reviewers,aleiserson
Differential Revision: https://phabricator.services.mozilla.com/D269784
2025-10-24 07:28:25 +00:00
Jim Blandy 35cd0a7e2d Bug 1995050: Update wgpu to upstream a70b8336 (2025-10-16) r=webgpu-reviewers,supply-chain-reviewers,teoxoy
Filed bug 1995066 for regressions in WebGPU CTS on Windows in
webgpu:api,operation,command_buffer,image_copy:offsets_and_sizes

Differential Revision: https://phabricator.services.mozilla.com/D269106
2025-10-21 03:02:28 +00:00
Teodor Tanasoaia 03a627fbce Bug 1981225 - Consolidate ID-related logic in ObjectBase. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D261942
2025-08-27 11:22:00 +00:00
agoloman db150f25f2 Revert (Bug 1981187, Bug 1981225) - for causing build bustages RenderBundle.cpp.
This reverts commit cb3f1a84bb.

Revert "Bug 1981225 - Consolidate ID-related logic in `ObjectBase`. r=webgpu-reviewers,ErichDonGubler"

This reverts commit 793a7e81db.
2025-08-26 14:12:22 +00:00
Teodor Tanasoaia 793a7e81db Bug 1981225 - Consolidate ID-related logic in ObjectBase. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D261942
2025-08-26 13:23:27 +00:00
agoloman 167b30ae21 Revert (Bug 1981187, Bug 1981225)- for causing build bustages @RefPtr.h.
This reverts commit 5fb5283ac4.

Revert "Bug 1981225 - Consolidate ID-related logic in `ObjectBase`. r=webgpu-reviewers,ErichDonGubler"

This reverts commit 2d0cd2975f.
2025-08-26 11:18:12 +00:00
Teodor Tanasoaia 2d0cd2975f Bug 1981225 - Consolidate ID-related logic in ObjectBase. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D261942
2025-08-26 10:07:28 +00:00
Jamie Nicol 25076c928d Bug 1982866 - Make WebGPU external texture support configurable via a pref and blocklistable. r=webgpu-reviewers,webidl,jimb,smaug
Adds pref dom.webgpu.external-texture.enabled, which is false by
default, to control whether external texture support is enabled.
Additionally, adds a gfx blocklist entry which can override the pref to
disable on platforms with known issues. Block on non-Windows for now.

When support is disabled, either via the pref or blocklist, ensure the
Device.importExternalTexture() function is hidden. Add an additional
check to the C++ implementation as a precaution.

When support is enabled, enable the required wgpu feature.

Differential Revision: https://phabricator.services.mozilla.com/D260991
2025-08-14 16:49:46 +00:00
Sandor Molnar 93da9cf402 Revert "Bug 1982866 - Make WebGPU external texture support configurable via a pref and blocklistable. r=webgpu-reviewers,webidl,jimb,smaug" for causing build bustages @ gfxPlatform.cpp
This reverts commit 7b08643650.
2025-08-14 14:33:30 +00:00
Jamie Nicol 7b08643650 Bug 1982866 - Make WebGPU external texture support configurable via a pref and blocklistable. r=webgpu-reviewers,webidl,jimb,smaug
Adds pref dom.webgpu.external-texture.enabled, which is false by
default, to control whether external texture support is enabled.
Additionally, adds a gfx blocklist entry which can override the pref to
disable on platforms with known issues. Block on non-Windows for now.

When support is disabled, either via the pref or blocklist, ensure the
Device.importExternalTexture() function is hidden. Add an additional
check to the C++ implementation as a precaution.

When support is enabled, enable the required wgpu feature.

Differential Revision: https://phabricator.services.mozilla.com/D260991
2025-08-14 11:44:46 +00:00
agoloman 337cd46861 Revert "Bug 1982866 - Make WebGPU external texture support configurable via a pref and blocklistable. r=webgpu-reviewers,webidl,jimb,smaug" for causing mass failures.
This reverts commit f2fee9b8b4.
2025-08-13 22:38:33 +00:00
Jamie Nicol f2fee9b8b4 Bug 1982866 - Make WebGPU external texture support configurable via a pref and blocklistable. r=webgpu-reviewers,webidl,jimb,smaug
Adds pref dom.webgpu.external-texture.enabled, which is false by
default, to control whether external texture support is enabled.
Additionally, adds a gfx blocklist entry which can override the pref to
disable on platforms with known issues. Block on non-Windows for now.

When support is disabled, either via the pref or blocklist, ensure the
Device.importExternalTexture() function is hidden. Add an additional
check to the C++ implementation as a precaution.

When support is enabled, enable the required wgpu feature.

Differential Revision: https://phabricator.services.mozilla.com/D260991
2025-08-13 21:48:19 +00:00
Jamie Nicol 95a29549cc Bug 1979110 - Allow reusing previously imported external textures. r=webgpu-reviewers,teoxoy
The WebGPU spec allows us to return a previously imported external
texture from `importExternalTexture()` when provided with the same
descriptor (ignoring the label), as long as the current image contents
of the source is the same. For applications that import a large number
of external textures from the same source, this can be a significant
performance improvement.

This implementation maintains a cache of imported external texture
sources, keyed by the "serial" of the layers::Image they were imported
from. Additionally, each source maintains a cache of external textures
that have been created from it. This is keyed by the contents of their
descriptor, ignoring the label (as per the spec) and the "source" (as
the cache is owned by the source) leaving just the color space.

Using these two separate levels of cache means that we not only create
a single single external texture for multiple imports with the same
descriptor, but when importing from the same source with an otherwise
different descriptor we are still able to share the underlying plane
textures.

Differential Revision: https://phabricator.services.mozilla.com/D260827
2025-08-13 10:12:02 +00:00
Jamie Nicol fb77729315 Bug 1979108 - Implement ExternalTexture expiration. r=webgpu-reviewers,media-playback-reviewers,teoxoy,alwu
ExternalTextures imported from HTMLVideoElements get "expired" in the
"automatic expiry task source", which is implemented by scheduling a
stable state task. ExternalTextures imported from VideoFrames get
expired when the VideoFrame is closed.

Keep track of each external texture used by any used bind group when
encoding compute and render passes. When submitting, if any passes
contain expired external textures then raise a validation error.

Currently we always create a new ExternalTexture when
importExternalTexture() is called. When support for reusing previously
imported textures is added, we must ensure they are correctly
"unexpired".

Differential Revision: https://phabricator.services.mozilla.com/D260295
2025-08-12 08:49:36 +00:00
Jamie Nicol 4b1b9309bd Bug 1979101 - Support external textures in BindGroups. r=webgpu-reviewers,webidl,smaug,teoxoy
Update webidl definition to allow a GPUBindingResource to be a
GPUExternalTexture, and add necessary plumbing to pass the correct
value through to wgpu.

Note that for now we have not requested Features::EXTERNAL_TEXTURE when
creating the wgpu device, meaning that any attempts to actually create
a bind group containing an external texture will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D260294
2025-08-12 08:49:32 +00:00
Jamie Nicol 2326fa335e Bug 1979100 - Implement WebGPU Device.importExternalTexture(). r=webgpu-reviewers,webidl,smaug,teoxoy
First we create an ExternalTextureSource using the infrastructure added
in the previous patch, and from that we create an ExternalTexture.

In order to create the external texture the client side passes an
`ExternalTextureDescriptor` to the host side, which encodes the
source as a optional ID. On the host side additional information is
queried from the ExternalTextureSourceHost, which is combined with the
`ExternalTextureDescriptor` provided by the client in order to call
wgpu's create_external_texture().

If there was an error importing the source on the client side the
source ID will be `None`. If there was an error importing the source
on the host side, it will return an empty slice of texture views as its
planes. In either case this indicates we should propagate the error
state to the external texture.

Subsequent patches will allow for creating multiple external textures
from the same source, and returning previously imported external
textures rather than always creating a new one.

Note that for now we have not requested Features::EXTERNAL_TEXTURE when
creating the wgpu device, meaning that any attempts to actually create
an external texture will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D259820
2025-08-11 12:34:31 +00:00
Narcis Beleuzu b5c83e2ac1 Revert "Bug 1979100 - Implement WebGPU Device.importExternalTexture(). r=webgpu-reviewers,webidl,smaug,teoxoy" for causing bustages on Utility.cpp
This reverts commit 0bb8155417.
2025-08-09 14:06:24 +00:00
Jamie Nicol 0bb8155417 Bug 1979100 - Implement WebGPU Device.importExternalTexture(). r=webgpu-reviewers,webidl,smaug,teoxoy
First we create an ExternalTextureSource using the infrastructure added
in the previous patch, and from that we create an ExternalTexture.

In order to create the external texture the client side passes an
`ExternalTextureDescriptor` to the host side, which encodes the
source as a optional ID. On the host side additional information is
queried from the ExternalTextureSourceHost, which is combined with the
`ExternalTextureDescriptor` provided by the client in order to call
wgpu's create_external_texture().

If there was an error importing the source on the client side the
source ID will be `None`. If there was an error importing the source
on the host side, it will return an empty slice of texture views as its
planes. In either case this indicates we should propagate the error
state to the external texture.

Subsequent patches will allow for creating multiple external textures
from the same source, and returning previously imported external
textures rather than always creating a new one.

Note that for now we have not requested Features::EXTERNAL_TEXTURE when
creating the wgpu device, meaning that any attempts to actually create
an external texture will result in an error.

Differential Revision: https://phabricator.services.mozilla.com/D259820
2025-08-09 09:45:04 +00:00
Teodor Tanasoaia c36d86d390 Bug 1979701 - Update wgpu to revision 36ae215e9cfb0defb94f889f55edc18c5b87f150. r=webgpu-reviewers,supply-chain-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D258950
2025-08-06 15:05:38 +00:00
Emilio Cobos Álvarez 791917d8af Bug 1976665 - Sort headers in dom/. r=dom-core,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,padenot,janv,smaug,jesup,jib
Most changes are automated. Relevant bit is dom/.clang-format. I had to
manually disable clang-format in a few places where importing external
files and so on that aren't self-contained, and fix a couple includes /
forward declarations.

Differential Revision: https://phabricator.services.mozilla.com/D256800
2025-08-05 11:47:34 +00:00
Teodor Tanasoaia db421a583d Bug 1975714 - Use MOZ_CAN_RUN_SCRIPT_BOUNDARY for reportCompilationMessagesToConsole. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D258409
2025-07-25 16:34:55 +00:00
Teodor Tanasoaia 2ed25cea01 Bug 1975714 - Move remaining ID creation/destruction into resource creation/destruction functions. r=webgpu-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D258240
2025-07-25 16:34:44 +00:00
Teodor Tanasoaia c10f7dd0fc Bug 1975714 - Replace uses of make_slice with FfiSlice. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D257749
2025-07-25 16:34:40 +00:00
Teodor Tanasoaia 1dbaf92aec Bug 1975714 - Use FfiSlice in remaining places. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D257748
2025-07-25 16:34:37 +00:00
Teodor Tanasoaia a6aad67ff8 Bug 1977861 - Stop leaking BGLs returned by GPUPipelineBase.getBindGroupLayout(). r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D257745
2025-07-25 16:34:26 +00:00
Teodor Tanasoaia 3f1ce44081 Bug 1975714 - Do not immediately resolve the lost promise on device.destroy(). r=webgpu-reviewers,nical
We can't immediately resolve the lost promise on `device.destroy()`
since it has to be well-ordered with the resolution of other promises.

I previously mentioned I had to demote 2 tests from tier 2 because I
thought they were relying on promise ordering that the spec doesn't
guarantee. Looking at the spec more throughly it turns out that the
specific steps outlined in the spec do guarantee the ordering but
the more succint "Promise Ordering" section does not mention this.

Tests in question:
https://gpuweb.github.io/cts/standalone/?q=webgpu:api,validation,state,device_lost,destroy:createComputePipelineAsync:*
https://gpuweb.github.io/cts/standalone/?q=webgpu:api,validation,state,device_lost,destroy:createRenderPipelineAsync:*

Differential Revision: https://phabricator.services.mozilla.com/D256126
2025-07-25 16:34:15 +00:00
Sandor Molnar 752f8e9d7d Revert "Bug 1975714 - Promote tests out of backlog. r=webgpu-reviewers,nical" for causing build bustages @ ComputePassEncoder.cpp
This reverts commit 22fb6f2691.

Revert "Bug 1975714 - Update backlog expectations. r=webgpu-reviewers,nical"

This reverts commit 72b4644a09.

Revert "Bug 1975714 - Use `MOZ_CAN_RUN_SCRIPT_BOUNDARY` for `reportCompilationMessagesToConsole`. r=webgpu-reviewers,ErichDonGubler"

This reverts commit 4394625f93.

Revert "Bug 1975714 - Assert that the IDs in server messages are the same as the ones the `WebGPUChild` actor expects. r=webgpu-reviewers,nical"

This reverts commit 5ce8cf9b12.

Revert "Bug 1978369 - Stop leaking queues. r=webgpu-reviewers,nical"

This reverts commit 32ab875eab.

Revert "Bug 1975714 - Move remaining ID creation/destruction into resource creation/destruction functions. r=webgpu-reviewers,nical"

This reverts commit 122e1a6529.

Revert "Bug 1975714 - Replace uses of `make_slice` with  `FfiSlice`. r=webgpu-reviewers,ErichDonGubler"

This reverts commit 62add844bf.

Revert "Bug 1975714 - Use `FfiSlice` in remaining places. r=webgpu-reviewers,ErichDonGubler"

This reverts commit 3812af72dd.

Revert "Bug 1975714 - Use an opaque pointer for `WebGPUParent`. r=webgpu-reviewers,ErichDonGubler"

This reverts commit bf83ea6553.

Revert "Bug 1975714 - Remove unneeded `#[allow(dead_code)]`. r=webgpu-reviewers,ErichDonGubler"

This reverts commit a84b40d4b8.

Revert "Bug 1977861 - Stop leaking BGLs returned by GPUPipelineBase.getBindGroupLayout(). r=webgpu-reviewers,ErichDonGubler"

This reverts commit b5ec027bf9.

Revert "Bug 1975714 - Turn function pointers into extern fns. r=webgpu-reviewers,nical"

This reverts commit d3681b7012.

Revert "Bug 1975714 - Make sure to resolve/reject all pending promises in `ClearActorState`. r=webgpu-reviewers,nical"

This reverts commit 2f607174ce.

Revert "Bug 1975714 - Do not immediately resolve the lost promise on `device.destroy()`. r=webgpu-reviewers,nical"

This reverts commit 1c10e1f698.

Revert "Bug 1960399 - Reject async pipeline creation with `GPUPipelineError`. r=webgpu-reviewers,nical"

This reverts commit ee47165e63.

Revert "Bug 1975714 - Correct comments. r=webgpu-reviewers,nical"

This reverts commit 9e0aabda0e.
2025-07-24 18:02:12 +00:00
Teodor Tanasoaia 4394625f93 Bug 1975714 - Use MOZ_CAN_RUN_SCRIPT_BOUNDARY for reportCompilationMessagesToConsole. r=webgpu-reviewers,ErichDonGubler
Differential Revision: https://phabricator.services.mozilla.com/D258409
2025-07-24 17:05:52 +00:00