Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 11d812053475e3aaf9836f6150a3416a318e374e
      
https://github.com/WebKit/WebKit/commit/11d812053475e3aaf9836f6150a3416a318e374e
  Author: Mike Wyrzykowski <[email protected]>
  Date:   2024-06-06 (Thu, 06 Jun 2024)

  Changed paths:
    A LayoutTests/fast/webgpu/regression/repro_275196-expected.txt
    A LayoutTests/fast/webgpu/regression/repro_275196.html
    A LayoutTests/fast/webgpu/regression/repro_275196b-expected.txt
    A LayoutTests/fast/webgpu/regression/repro_275196b.html
    M Source/WebGPU/WebGPU/RenderBundle.h
    M Source/WebGPU/WebGPU/RenderBundle.mm
    M Source/WebGPU/WebGPU/RenderPassEncoder.h
    M Source/WebGPU/WebGPU/RenderPassEncoder.mm
    M Source/WebGPU/WebGPU/RenderPipeline.h
    M Source/WebGPU/WebGPU/RenderPipeline.mm

  Log Message:
  -----------
  [WebGPU] GPUTextureView can surprisingly be garbage collected
https://bugs.webkit.org/show_bug.cgi?id=275196
<radar://129272236>

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_275196-expected.txt: Added.
* LayoutTests/fast/webgpu/regression/repro_275196.html: Added.
* LayoutTests/fast/webgpu/regression/repro_275196b-expected.txt: Added.
* LayoutTests/fast/webgpu/regression/repro_275196b.html: Added.
* Source/WebGPU/WebGPU/RenderBundle.h:
* Source/WebGPU/WebGPU/RenderBundle.mm:
(WebGPU::RenderBundle::validateRenderPass const):
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::m_maxDrawCount):
* Source/WebGPU/WebGPU/RenderPipeline.h:
* Source/WebGPU/WebGPU/RenderPipeline.mm:
(WebGPU::RenderPipeline::colorDepthStencilTargetsMatch const):

Canonical link: https://commits.webkit.org/279797@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

Reply via email to