Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2a5242c44540bcb91817302583a826fdab8f7662
      
https://github.com/WebKit/WebKit/commit/2a5242c44540bcb91817302583a826fdab8f7662
  Author: Nitin Mahendru <[email protected]>
  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 <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to