Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-[MTLCommandBuffer commit] may be called while encoding is still in p…
…rogress https://bugs.webkit.org/show_bug.cgi?id=274275 <radar://128201828> Reviewed by Dan Glastonbury. Ensure we don't leave encoders open or commit command buffers before encoding has ended. * LayoutTests/TestExpectations: * LayoutTests/fast/webgpu/fuzz-274275-expected.txt: Added. * LayoutTests/fast/webgpu/fuzz-274275.html: Added. Add regression test. * Source/WebGPU/WebGPU/CommandEncoder.mm: (WebGPU::CommandEncoder::endEncoding): (WebGPU::CommandEncoder::runClearEncoder): * Source/WebGPU/WebGPU/PresentationContextIOSurface.mm: * Source/WebGPU/WebGPU/Queue.h: * Source/WebGPU/WebGPU/Queue.mm: (WebGPU::Queue::~Queue): (WebGPU::Queue::ensureBlitCommandEncoder): (WebGPU::Queue::finalizeBlitCommandEncoder): (WebGPU::Queue::endEncoding const): (WebGPU::Queue::setEncoderForBuffer): Centralize endEncoding calls. Canonical link: https://commits.webkit.org/279008@main
- Loading branch information