[webkit-changes] [WebKit/WebKit] 2a5242: [WebGPUSwift] fix validation errors in copyBufferT...
nmahendru
noreply at github.com
Tue Jan 21 11:49:35 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2a5242c44540bcb91817302583a826fdab8f7662
https://github.com/WebKit/WebKit/commit/2a5242c44540bcb91817302583a826fdab8f7662
Author: Nitin Mahendru <nitinmahendru at apple.com>
Date: 2025-01-21 (Tue, 21 Jan 2025)
Changed paths:
M Source/WebGPU/WebGPU/CommandEncoder.swift
Log Message:
-----------
[WebGPUSwift] fix validation errors in copyBufferToTexture swift implementation.
https://bugs.webkit.org/show_bug.cgi?id=286296
rdar://143319048
Reviewed by Mike Wyrzykowski.
totalBytesUsed(66848768) must be <= [sourceBuffer length](262144).
Fix a validation error with min check and also correct an checked overflow arithmetic operation
which was wrongly added as addition to multiplication.
* Source/WebGPU/WebGPU/CommandEncoder.swift:
(WebGPU.copyBufferToTexture(_:destination:copySize:)):
Co-authored-by: Mike Wyrzykowski <mwyrzykowski at apple.com>
Canonical link: https://commits.webkit.org/289194@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