On invalid buffer CTS expects:
|
{ validationError: true, earlyRejection: false, rejectName: 'OperationError' }, |
and both firefox and chromium pass it, but spec says we should return abort and no validation error:
-
If any of the following conditions are unsatisfied:
this must be valid.
Set deviceLost to true.
Issue the map failure steps on contentTimeline.
Return.
If deviceLost:
Reject p with an AbortError.
This might also be spec issue as introduction PR of spec text talks about device loss, but here it's actually buffer invalidity part of code: gpuweb/gpuweb#5114 (this is buffer not device).
On invalid buffer CTS expects:
cts/src/webgpu/api/validation/buffer/mapping.spec.ts
Line 155 in 81aeeb4
and both firefox and chromium pass it, but spec says we should return abort and no validation error:
This might also be spec issue as introduction PR of spec text talks about device loss, but here it's actually buffer invalidity part of code: gpuweb/gpuweb#5114 (
thisis buffer not device).