[webkit-changes] [WebKit/WebKit] e44951: [WGSL] Disallow NaN as a constant value

Tadeu Zagallo noreply at github.com
Tue Nov 7 09:01:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e449510e80210ea7a569b3db7f71d83df293348b
      https://github.com/WebKit/WebKit/commit/e449510e80210ea7a569b3db7f71d83df293348b
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-11-07 (Tue, 07 Nov 2023)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantValue.h
    M Source/WebGPU/WGSL/tests/valid/overload.wgsl

  Log Message:
  -----------
  [WGSL] Disallow NaN as a constant value
https://bugs.webkit.org/show_bug.cgi?id=264333
rdar://118055576

Reviewed by Mike Wyrzykowski.

The constant value conversion/validation was missing a check for NaNs, which are
not valid constant values.

* Source/WebGPU/WGSL/ConstantValue.h:
(WGSL::convertFloat):
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:

Canonical link: https://commits.webkit.org/270326@main




More information about the webkit-changes mailing list