Closed Bug 1827763 Opened 1 year ago Closed 8 months ago

WebGPU server should limit requested `wgpu` device features to those present in WebGPU spec

Categories

(Core :: Graphics: WebGPU, defect, P2)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jimb, Unassigned)

References

Details

wgpu_server_adapter_request_device should mask off any bits in the wgc::device::DeviceDescriptor value it deserializes that don't correspond to features defined in the WebGPU spec.

It would make sense to fix this as part of wgpu#3274.

We believe that we have already fixed this (PR link above notwithstanding, which has not been closed yet).

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED

:nical, can you please note the PR fixing this?

Flags: needinfo?(nical.bugzilla)

I was not involved with this one specifically. Looking at the code it appears that we do this validation on the content side in Adapter.cpp but srver.rs does not mask out feature bits that are out of spec as suggested in the bug title.

Flags: needinfo?(nical.bugzilla)
You need to log in before you can comment on or make changes to this bug.