[webkit-changes] [WebKit/WebKit] aef268: [WebGPU] instance_id should be limited to 2^32 - 1

mwyrzykowski noreply at github.com
Mon Oct 14 11:37:19 PDT 2024


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

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

  Log Message:
  -----------
  [WebGPU] instance_id should be limited to 2^32 - 1
https://bugs.webkit.org/show_bug.cgi?id=281272
rdar://137684526

Reviewed by Tadeu Zagallo.

instance_id is uint64 on the Metal framework side, but uint32 in MSL,
so it needs to be limited to uint32

* LayoutTests/fast/webgpu/nocrash/fuzz-281272-expected.txt: Added.
* LayoutTests/fast/webgpu/nocrash/fuzz-281272.html: Added.
* Source/WebGPU/WebGPU/RenderBundleEncoder.h:
* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(WebGPU::RenderBundleEncoder::executePreDrawCommands):
(WebGPU::RenderBundleEncoder::draw):
(WebGPU::RenderBundleEncoder::drawIndexed):
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::executePreDrawCommands):

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