Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d9af00d39986889ec918f41f02ce9aa973c6bdea
      
https://github.com/WebKit/WebKit/commit/d9af00d39986889ec918f41f02ce9aa973c6bdea
  Author: Mike Wyrzykowski <[email protected]>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    A LayoutTests/fast/webgpu/nocrash/fuzz-287519-expected.txt
    A LayoutTests/fast/webgpu/nocrash/fuzz-287519.html
    M Source/WebGPU/WebGPU/CommandEncoder.mm
    M Source/WebGPU/WebGPU/CommandEncoder.swift
    M Source/WebGPU/WebGPU/Device.h
    M Source/WebGPU/WebGPU/Device.mm
    M Source/WebGPU/WebGPU/HardwareCapabilities.mm

  Log Message:
  -----------
  [WebGPU] Support timestamp queries with the Metal debug device
https://bugs.webkit.org/show_bug.cgi?id=287519
rdar://144627256

Reviewed by Tadeu Zagallo.

Use a weak -> strong objects array to ensure the lifetime
of the MTLCounterSampleBuffer exceeds the lifetime of its
associated MTLCommandBuffer.

* LayoutTests/fast/webgpu/nocrash/fuzz-287519-expected.txt: Added.
* LayoutTests/fast/webgpu/nocrash/fuzz-287519.html: Added.
Add regression test.

* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::beginComputePass):
(WebGPU::CommandEncoder::beginRenderPass):
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.beginRenderPass(_:)):
(WebGPU.beginComputePass(_:)):
* Source/WebGPU/WebGPU/Device.h:
* Source/WebGPU/WebGPU/Device.mm:
(WebGPU::Device::timestampsBuffer):
(WebGPU::Device::resolveTimestampsForBuffer):

* Source/WebGPU/WebGPU/HardwareCapabilities.mm:
(WebGPU::baseFeatures):
Remove disablement for MTLDebug* device instances.

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