[webkit-changes] [WebKit/WebKit] 75bb07: [WGSL] Add support for f16 bitcast and constant fu...

Tadeu Zagallo noreply at github.com
Mon Jan 8 05:28:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 75bb072eb384a932aff1db17c39183b66d85d6b1
      https://github.com/WebKit/WebKit/commit/75bb072eb384a932aff1db17c39183b66d85d6b1
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-01-08 (Mon, 08 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantFunctions.h
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/tests/invalid/bitcast.wgsl
    M Source/WebGPU/WGSL/tests/valid/overload.wgsl

  Log Message:
  -----------
  [WGSL] Add support for f16 bitcast and constant function
https://bugs.webkit.org/show_bug.cgi?id=267142
rdar://120555423

Reviewed by Dan Glastonbury and Mike Wyrzykowski.

Extend the type checking implementation for bitcast to support f16, and also
add the constant evaluator for it.

* Source/WebGPU/WGSL/ConstantFunctions.h:
(WGSL::CONSTANT_FUNCTION):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visitVariable):
(WGSL::TypeChecker::bitcast):
* Source/WebGPU/WGSL/tests/invalid/bitcast.wgsl:
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:

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




More information about the webkit-changes mailing list