Closed Bug 1750576 Opened 3 years ago Closed 2 years ago

Expose WebGPU shader compilation info

Categories

(Core :: Graphics: WebGPU, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: kvark, Assigned: nical)

References

(Regressed 1 open bug)

Details

Attachments

(3 files)

We need to expose the shader compilation info. Currently our WebIDL has it commented out:

interface GPUShaderModule {
    //TODO:
    //Promise<GPUCompilationInfo> compilationInfo();
};
Depends on: 1710678
Blocks: 1710678
No longer depends on: 1710678
Blocks: webgpu-in-nightly
No longer blocks: webgpu-mvp
Attached patch compilation-info.patch (deleted) — Splinter Review

My unfinished patch for this

Assignee: nobody → nical.bugzilla
Attachment #9277309 - Attachment description: WIP: Bug 1750576 - (WIP) WebGPU shader module compilationInfo → Bug 1750576 - WebGPU shader module asynchronous CompilationInfo API. r=aosmond,jimb
Status: NEW → ASSIGNED
Attachment #9277309 - Attachment description: Bug 1750576 - WebGPU shader module asynchronous CompilationInfo API. r=aosmond,jimb → Bug 1750576 - WebGPU shader module asynchronous CompilationInfo API. r=jimb,emilio

Inspired by emilio's suggestion in the shader module API patch. This tries to be the most straightforward way to go from the strings coming from IPC to the ones consumed by wgpu.

Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0a2e3c4ca14f WebGPU shader module asynchronous CompilationInfo API. r=aosmond,emilio
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/be7493c6f3cb WebGPU shader module asynchronous CompilationInfo API. r=aosmond,emilio https://hg.mozilla.org/integration/autoland/rev/21ede22c4113 Avoid passing raw strings in a couple of wgpu bindings entry points. r=emilio

Backed out for causing lint failures and build bustages

Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50901e1befca WebGPU shader module asynchronous CompilationInfo API. r=aosmond,emilio https://hg.mozilla.org/integration/autoland/rev/807e95cd9956 Avoid passing raw strings in a couple of wgpu bindings entry points. r=emilio
Flags: needinfo?(nical.bugzilla)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Regressions: 1779772
Regressions: 1808820
Regressions: 1817557
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: