Closed Bug 1974058 Opened 1 month ago Closed 28 days ago

Update wgpu to upstream df272d3c (2025-06-25)

Categories

(Core :: Graphics: WebGPU, task, P1)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: jimb, Assigned: jimb)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

What it says on the tin.

Assignee: nobody → jimb
Status: NEW → ASSIGNED

We're getting some new crashes in backlog tests on Linux and Mac:

modified   testing/web-platform/mozilla/meta/webgpu/cts/webgpu/web_platform/canvas/getCurrentTexture/cts.https.html.ini
modified   testing/web-platform/mozilla/meta/webgpu/cts/webgpu/web_platform/canvas/getCurrentTexture/dedicated.https.html.ini
modified   testing/web-platform/mozilla/meta/webgpu/cts/webgpu/web_platform/canvas/getCurrentTexture/shared.https.html.ini
modified   testing/web-platform/mozilla/meta/webgpu/cts/webgpu/web_platform/copyToTexture/canvas/cts.https.html.ini

I want to make sure these are not a problem.

:jimb: Those failures precede the patch stack you've submitted; they're already failing in mozilla-central, as I also independently discovered with testing for bug 1973770. Just about to land those crashes as accepted outcomes in D255027.

These crashes are hitting one of the following assertions:

https://searchfox.org/mozilla-central/rev/445973bddca7645f6d8068e9347b4d98b1aeb59e/dom/webgpu/ipc/WebGPUParent.cpp#1105-1113

ipc::IPCResult WebGPUParent::GetFrontBufferSnapshot(
    IProtocol* aProtocol, const layers::RemoteTextureOwnerId& aOwnerId,
    const RawId& aCommandEncoderId, Maybe<Shmem>& aShmem, gfx::IntSize& aSize,
    uint32_t& aByteStride) {
  const auto& lookup = mPresentationDataMap.find(aOwnerId);
  if (lookup == mPresentationDataMap.end()) {
    MOZ_ASSERT_UNREACHABLE("unexpected to be called");
    return IPC_OK();
  }

https://searchfox.org/mozilla-central/rev/445973bddca7645f6d8068e9347b4d98b1aeb59e/dom/webgpu/ipc/WebGPUParent.cpp#1313-1332

void WebGPUParent::SwapChainPresent(
    RawId aTextureId, RawId aCommandEncoderId,
    const layers::RemoteTextureId& aRemoteTextureId,
    const layers::RemoteTextureOwnerId& aOwnerId) {
  ...
  if (data->mUseExternalTextureInSwapChain) {
    auto it = mExternalTextures.find(aTextureId);
    if (it == mExternalTextures.end()) {
      MOZ_ASSERT_UNREACHABLE("unexpected to be called");
      return;
    }

(In reply to Erich Gubler [:ErichDonGubler] (he/him) from comment #4)

:jimb: Those failures precede the patch stack you've submitted; they're already failing in mozilla-central, as I also independently discovered with testing for bug 1973770. Just about to land those crashes as accepted outcomes in D255027.

Okay, sounds good.

That try push failed for reasons it won't say. new try push

edit: Okay, that one failed too. Something is going on here that I don't understand.

edit: Lando seems to be unhappy today. Other folks are having the same problem with unrelated work, so it seems like the problem has nothing to do with this PR.

Pushed by jblandy@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3e350b9d96c4 https://hg.mozilla.org/integration/autoland/rev/22af877c8192 Update wgpu to upstream df272d3c (2025-06-25) r=webgpu-reviewers,supply-chain-reviewers,nical
Status: ASSIGNED → RESOLVED
Closed: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: