[webkit-changes] [WebKit/WebKit] a39795: [WebGPU] Expand metal capture to capture a number ...
mwyrzykowski
noreply at github.com
Sun Nov 12 18:18:17 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a3979565d4436eb9d167edb50629feb7cfd223e4
https://github.com/WebKit/WebKit/commit/a3979565d4436eb9d167edb50629feb7cfd223e4
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2023-11-12 (Sun, 12 Nov 2023)
Changed paths:
M Source/WebGPU/WebGPU/Device.h
M Source/WebGPU/WebGPU/Device.mm
M Source/WebGPU/WebGPU/Queue.mm
Log Message:
-----------
[WebGPU] Expand metal capture to capture a number of calls to submit
https://bugs.webkit.org/show_bug.cgi?id=264601
rdar://118237625
Reviewed by Dan Glastonbury.
Some websites may call GPUQueue.submit several times per frame so
to capture the entire list of submissions we need to allow the capture
to continue across multiple calls to GPUQueue.submit.
Allow specifying the state of CaptureFrame like so:
notifyutil -s com.apple.WebKit.WebGPU.CaptureFrame 10
to capture 10 submit calls.
* Source/WebGPU/WebGPU/Device.h:
* Source/WebGPU/WebGPU/Device.mm:
(WebGPU::GPUFrameCapture::registerForFrameCapture):
(WebGPU::GPUFrameCapture::shouldStopCaptureAfterSubmit):
(WebGPU::Device::shouldStopCaptureAfterSubmit):
* Source/WebGPU/WebGPU/Queue.mm:
(WebGPU::Queue::submit):
Canonical link: https://commits.webkit.org/270620@main
More information about the webkit-changes
mailing list