Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3caf6eb7624dcf98778238644a78775400d29dab
https://github.com/WebKit/WebKit/commit/3caf6eb7624dcf98778238644a78775400d29dab
Author: Mike Wyrzykowski <[email protected]>
Date: 2024-06-06 (Thu, 06 Jun 2024)
Changed paths:
A LayoutTests/fast/webgpu/regression/repro_275195-expected.txt
A LayoutTests/fast/webgpu/regression/repro_275195.html
A LayoutTests/fast/webgpu/regression/repro_275195b-expected.txt
A LayoutTests/fast/webgpu/regression/repro_275195b.html
M Source/WebGPU/WebGPU/RenderBundleEncoder.h
M Source/WebGPU/WebGPU/RenderBundleEncoder.mm
M Source/WebGPU/WebGPU/RenderPassEncoder.h
M Source/WebGPU/WebGPU/RenderPassEncoder.mm
Log Message:
-----------
[WebGPU] index buffer set on GPURenderPassEncoder can be garbage collected in
a surprising fashion
https://bugs.webkit.org/show_bug.cgi?id=275195
<radar://129272040>
Reviewed by Dan Glastonbury.
We should hold a RefPtr and not a WeakPtr since a GC which occurs in the middle
of an encoder can result in the pipeline's ref count reaching zero.
There is not a risk of a retain cycle as the *Encoders are not retained by
any other objects.
* LayoutTests/fast/webgpu/regression/repro_275195-expected.txt: Added.
* LayoutTests/fast/webgpu/regression/repro_275195.html: Added.
* LayoutTests/fast/webgpu/regression/repro_275195b-expected.txt: Added.
* LayoutTests/fast/webgpu/regression/repro_275195b.html: Added.
* Source/WebGPU/WebGPU/RenderBundleEncoder.h:
* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(WebGPU::RenderBundleEncoder::setIndexBuffer):
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::setIndexBuffer):
Canonical link: https://commits.webkit.org/279800@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