Open Bug 1641370 Opened 4 months ago Updated 3 months ago

Validate WebGPU shader requirements against the pipelines

Categories

(Core :: Graphics: WebGPU, task)

task

Tracking

()

ASSIGNED

People

(Reporter: kvark, Assigned: kvark)

References

(Blocks 1 open bug)

Details

(Keywords: leave-open)

Attachments

(1 file)

We have to match shader requirements against the pipelines in WebGPU in order to implement the spec. The current plan is to do so by integrating the experimental naga library.

This change attempts to parse the incoming SPIR-V shader modules with
Naga SPIR-V front-end. It's not complete, but it returns an Error if it's unable to parse,
in which case we just continue without the validation (for now).
If it succeeds, we extract the reflection information from it, and use it for the pipeline.

This is just a start. More states would need to be validated, and SPIR-V front-end needs more work.

Assignee: nobody → dmalyshau
Status: NEW → ASSIGNED

Keeping this open since we'll need multiple follow-ups to get this truly addressed.

Keywords: leave-open
Pushed by dmalyshau@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/02d8613ce080
Add optional SPIR-V shader validation to WebGPU, via naga r=jgilbert
You need to log in before you can comment on or make changes to this bug.