[webkit-changes] [WebKit/WebKit] 44af92: [WebGPU] GPURenderPassEncoder.beginOcclusionQuery ...

mwyrzykowski noreply at github.com
Thu Feb 8 17:57:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 44af9259c9cb2d19f847748df0b619ce9d8cb966
      https://github.com/WebKit/WebKit/commit/44af9259c9cb2d19f847748df0b619ce9d8cb966
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-02-08 (Thu, 08 Feb 2024)

  Changed paths:
    M Source/WebGPU/WebGPU/CommandEncoder.mm
    M Source/WebGPU/WebGPU/RenderPassEncoder.h
    M Source/WebGPU/WebGPU/RenderPassEncoder.mm

  Log Message:
  -----------
  [WebGPU] GPURenderPassEncoder.beginOcclusionQuery should work with destroyed buffers
https://bugs.webkit.org/show_bug.cgi?id=269016
<radar://122577504>

Reviewed by Dan Glastonbury.

If the occlusion query buffer is destroyed, its visibility buffer
size will be zero but the specification still expects operations
to work on the destroyed query set.

* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::beginRenderPass):
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::occlusionQueryIsDestroyed const):
(WebGPU::RenderPassEncoder::beginOcclusionQuery):
(WebGPU::RenderPassEncoder::endOcclusionQuery):
(WebGPU::RenderPassEncoder::endPass):

Canonical link: https://commits.webkit.org/274333@main




More information about the webkit-changes mailing list