[webkit-changes] [WebKit/WebKit] bcab20: [WebGPU] @builtin(vertex_id) is limited to 2^32 - ...

mwyrzykowski noreply at github.com
Fri Oct 18 09:34:42 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bcab207bfdc325ed02129be755791c2c0652d954
      https://github.com/WebKit/WebKit/commit/bcab207bfdc325ed02129be755791c2c0652d954
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    A LayoutTests/fast/webgpu/nocrash/fuzz-281603-expected.txt
    A LayoutTests/fast/webgpu/nocrash/fuzz-281603.html
    M Source/WebGPU/WebGPU/RenderBundleEncoder.mm
    M Source/WebGPU/WebGPU/RenderPassEncoder.mm

  Log Message:
  -----------
  [WebGPU] @builtin(vertex_id) is limited to 2^32 - 1 in WGSL
https://bugs.webkit.org/show_bug.cgi?id=281603
rdar://137966534

Reviewed by Tadeu Zagallo.

The API shouldn't attempt to pass vertex IDs greater than 2^32 - 1
as it will overflow in the metal shader.

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

* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(WebGPU::RenderBundleEncoder::runVertexBufferValidation):
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::runVertexBufferValidation):

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