Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebGPU] Buffer instance can transition from Destroyed -> Unmapped state
https://bugs.webkit.org/show_bug.cgi?id=274446 <radar://128396385> Reviewed by Dan Glastonbury. Once destroyed, a Buffer is not allowed to be used in any operations and should remain in the destroyed state. * LayoutTests/TestExpectations: * LayoutTests/fast/webgpu/fuzz-128396311-expected.txt: Added. * LayoutTests/fast/webgpu/fuzz-128396311.html: Added. Add regression test. * Source/WebGPU/WebGPU/Buffer.h: * Source/WebGPU/WebGPU/Buffer.mm: (WebGPU::Buffer::destroy): (WebGPU::Buffer::mapAsync): (WebGPU::Buffer::setState): (WebGPU::Buffer::unmap): Canonical link: https://commits.webkit.org/279083@main
- Loading branch information