[webkit-changes] [WebKit/WebKit] be64ae: [WebGPU] Convert all adds and muls into checked ar...
mwyrzykowski
noreply at github.com
Tue Oct 15 22:23:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: be64ae4a8627494d9ea27c261bc09c573f1c2e7d
https://github.com/WebKit/WebKit/commit/be64ae4a8627494d9ea27c261bc09c573f1c2e7d
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2024-10-15 (Tue, 15 Oct 2024)
Changed paths:
M Source/WebGPU/WebGPU/CommandEncoder.mm
M Source/WebGPU/WebGPU/Queue.mm
M Source/WebGPU/WebGPU/Texture.h
M Source/WebGPU/WebGPU/Texture.mm
Log Message:
-----------
[WebGPU] Convert all adds and muls into checked arithmetic - part 1
https://bugs.webkit.org/show_bug.cgi?id=281365
rdar://137793734
Reviewed by Geoffrey Garen.
Convert CommandEncoder.mm, Queue.mm, and Texture.mm to
exclusively use checked arithmetic for all values passed
over IPC.
* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::copyBufferToTexture):
(WebGPU::CommandEncoder::clearTextureIfNeeded):
(WebGPU::CommandEncoder::copyTextureToBuffer):
(WebGPU::CommandEncoder::copyTextureToTexture):
(WebGPU::validateResolveQuerySet):
* Source/WebGPU/WebGPU/Queue.mm:
(WebGPU::Queue::writeTexture):
(WebGPU::Queue::clearTextureViewIfNeeded):
* Source/WebGPU/WebGPU/Texture.mm:
(WebGPU::Texture::bytesPerRow):
Canonical link: https://commits.webkit.org/285246@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list