Closed Bug 1878308 Opened 2 years ago Closed 2 years ago

Don't run wgpu-core pass recording in the content process

Categories

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

task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: nical, Assigned: nical)

Details

Attachments

(3 external files)

The way things are currently set up has some performance advantages over simply remoting the pass encoing code to the gpu process but also bunch of disadvantages:

  • It forces wgpu-core's render pass code to use IDs instead of Arcs internally
  • It prevents us from moving registries out of wgpu-core
  • It made BGL dedup more complicated
  • It prevents some simplifications of the ID allocation/recycling code
  • Forcing wgpu to have an internal render_ffi causes weird linking issues when people (accidentally) use two versions of wgpu.

For these reasons the wgpu maintainers would like to move away from this system which depends on Gecko remoting the render passes itself instead of serializing wgpu-core's internal representation.

Formatting regressed with in D199874, fixing with cargo fmt here.

Pushed by egubler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/36b086dfbd13 Move the render pass remoting logic into wgpu's bindings. r=webgpu-reviewers,ErichDonGubler https://hg.mozilla.org/integration/autoland/rev/c4a9d3751619 Move the compute pass remoting logic into wgpu bindings. r=webgpu-reviewers,ErichDonGubler https://hg.mozilla.org/integration/autoland/rev/330e9b1f94c2 chore(wgpu_bindings): run `cargo fmt` r=nical

Patches got backed out because the encoder_id argument for wgpu_command_encoder_begin_compute_pass is now unused. wgpu_command_render_begin_compute_pass (N.B., s/compute/render) had its encoder_id removed entirely. :nical, I think we need to do the same for compute passes?

Pushed by egubler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b3fb55591aa7 Move the render pass remoting logic into wgpu's bindings. r=webgpu-reviewers,ErichDonGubler https://hg.mozilla.org/integration/autoland/rev/c5f276e2774d Move the compute pass remoting logic into wgpu bindings. r=webgpu-reviewers,ErichDonGubler https://hg.mozilla.org/integration/autoland/rev/2887e360adb9 chore(wgpu_bindings): run `cargo fmt` r=nical

:nical: Not sure what's going wrong now, but WebGPU's mochitests are all failing with internal communication errors. Wish I could diagnose at a glance. 😅 I'm going to be moving my attention elsewhere, unfortunately. Best of luck! 🤞🏻

Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f3a65e816243 Move the render pass remoting logic into wgpu's bindings. r=webgpu-reviewers,ErichDonGubler https://hg.mozilla.org/integration/autoland/rev/899767ae3878 Move the compute pass remoting logic into wgpu bindings. r=webgpu-reviewers,ErichDonGubler https://hg.mozilla.org/integration/autoland/rev/00da219c8530 chore(wgpu_bindings): run `cargo fmt` r=nical
Flags: needinfo?(nical.bugzilla)
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: