[webkit-changes] [WebKit/WebKit] a6e77b: [WebGPU] MTLBuffer may not be resident in some GPU...

mwyrzykowski noreply at github.com
Mon Feb 24 19:37:47 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a6e77b92e6418f7d3178d8a23dd2be87eaf71ef8
      https://github.com/WebKit/WebKit/commit/a6e77b92e6418f7d3178d8a23dd2be87eaf71ef8
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    A LayoutTests/fast/webgpu/nocrash/fuzz-288383-expected.txt
    A LayoutTests/fast/webgpu/nocrash/fuzz-288383.html
    M Source/WebGPU/WebGPU/BindGroup.mm

  Log Message:
  -----------
  [WebGPU] MTLBuffer may not be resident in some GPUExternalTexture bind groups
https://bugs.webkit.org/show_bug.cgi?id=288383
rdar://145446959

Reviewed by Tadeu Zagallo.

GPUExternalTextures are always read-only, but in a bind group which
had mixed read, read+write, and write-only usages, we could end
up over-writing the wrong MTLResource leading to a read / write
from a non-resident resource.

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

* Source/WebGPU/WebGPU/BindGroup.mm:
(WebGPU::Device::createBindGroup):
External textures are always read only.

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