Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e91b9416d35d02968ccb1554d14e94568c762be5
https://github.com/WebKit/WebKit/commit/e91b9416d35d02968ccb1554d14e94568c762be5
Author: Mike Wyrzykowski <[email protected]>
Date: 2024-06-11 (Tue, 11 Jun 2024)
Changed paths:
A LayoutTests/fast/webgpu/nocrash/fuzz-275371-expected.txt
A LayoutTests/fast/webgpu/nocrash/fuzz-275371.html
M Source/WebGPU/WebGPU/RenderBundleEncoder.mm
Log Message:
-----------
[WebGPU] RenderBundleEncoder will crash if Device is destroyed before calling
GPURenderBundleEncoder.finish()
https://bugs.webkit.org/show_bug.cgi?id=275371
<radar://129605612>
Reviewed by Dan Glastonbury.
If the MTLDevice is destroyed, then we should skip attempting to perform
any work in finish() or replayCommands().
Specifically the crash occurs because the dynamic offsets buffer can not
be allocated on a MTLDevice which is nil.
* LayoutTests/fast/webgpu/nocrash/fuzz-275371-expected.txt: Added.
* LayoutTests/fast/webgpu/nocrash/fuzz-275371.html: Added.
Add regression test.
* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(WebGPU::RenderBundleEncoder::finish):
(WebGPU::RenderBundleEncoder::replayCommands):
Canonical link: https://commits.webkit.org/279935@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes