Closed Bug 1641370 Opened 11 months ago Closed 5 months ago

Validate WebGPU shader requirements against the pipelines

Categories

(Core :: Graphics: WebGPU, task)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: kvark, Assigned: kvark)

References

(Blocks 1 open bug)

Details

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

The leave-open keyword is there and there is no activity for 6 months.
:kvark, maybe it's time to close this bug?

Flags: needinfo?(dmalyshau)

Now that https://phabricator.services.mozilla.com/D98542 has landed, we can indeed close this.
More work will be needed for validation, should be tracked in exact CTS tests separately.

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Flags: needinfo?(dmalyshau)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.