Closed Bug 1841142 Opened 1 year ago Closed 1 year ago

`GPUBuffer.unmap` should not yield an error when buffer is invalid

Categories

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

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: ErichDonGubler, Assigned: ErichDonGubler)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

Relevant link: https://github.com/gpuweb/cts/issues/1930

Steps to reproduce

  1. Build Firefox off changes from bug 1840179 or later.

  2. Run webgpu:api,operation,buffers,map:mappedAtCreation,mapState:* test cases from WebGPU's CTS. Observe that an extra validation error is thrown when buffer.unmap is called in the test's source.

    For convenience, the above can be automated with this mach command:

    ./mach wpt webgpu:api,operation,buffers,map:mappedAtCreation,mapState:*
    

Note that while the above repro. steps are based on bug 1840179, this bug existed before then.

Blocks: 1842297
Keywords: leave-open
Depends on: 1840179
See Also: → 1843570

Comment on attachment 9342836 [details]
Bug 1841142: fix(webgpu): don't return an error for GPUBuffer.unmap when this.[[device]] is invalid r?#webgpu-reviewers

Revision D183052 was moved to bug 1838693. Setting attachment 9342836 [details] to obsolete.

Attachment #9342836 - Attachment is obsolete: true
Pushed by egubler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dfdc3fbce9b4 fix(webgpu): don't return an error for `GPUBuffer.unmap` when `this` is invalid r=webgpu-reviewers,nical
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: