Closed Bug 1916071 Opened 1 year ago Closed 7 months ago

WebGPU: Electronic Arts' PB-MPM page fails to run

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: ErichDonGubler, Unassigned)

References

(Blocks 1 open bug, )

Details

Saw this page floating around in the WebGPU community in Matrix, and wanted to make sure it worked in Firefox, too.

Source: https://github.com/electronicarts/pbmpm

Currently, I see type conversion issues with atomicAdd and select.

Even though https://github.com/gfx-rs/wgpu/issues/6443 is resolved, this still has the atomicAdd and select issues that Andy pointed out.

e.g.:

Shader validation error: Function [19] 'collide' is invalid
    ┌─ g2p2g:317:1
    │  
317 │ ╭ fn collide(shape: SimShape, pos: vec2f) -> CollideResult
318 │ │ {
319 │ │     if(shape.shapeType == ShapeTypeCircle)
320 │ │     {
    · │
323 │ │         let normal = offset * select(1.0/offsetLen, 0, offsetLen == 0);
    │ │                               ^^^^^^ naga::ir::Expression [13]
    · │
352 │ │     {
353 │ │         return CollideResult(false, 0.0, vec2f(0,0), vec2f(0,0));
    │ ╰─────────────────────────────────────────────────────────────────^ naga::ir::Function [19]
    │  
    = Expression [13] is invalid
    = Expected selection argument types to match, but reject value of type Scalar(Scalar { kind: Float, width: 4 }) does not match accept value of value Scalar(Scalar { kind: Sint, width: 4 })

atomicAdd is bug 1960093, select is bug 1960453.

Depends on: 1960093, 1960453

I can confirm that atomicAdd shader compilation errors are no longer coming up. 😤Now we're just awaiting the resolution to bug 1960453.

WFM now, with dependencies satisfied! Woot!

...except I noticed a crash I get occasionally that doesn't seem specific to this page; filed bug 1973591 to follow up with this.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
See Also: → 1973591
You need to log in before you can comment on or make changes to this bug.