[webkit-changes] [WebKit/WebKit] e553d7: [WGSL] Add support for call expressions with packe...

Tadeu Zagallo noreply at github.com
Wed Jun 14 03:56:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e553d772f7834fb83fa734c0ec7aa21733e0055f
      https://github.com/WebKit/WebKit/commit/e553d772f7834fb83fa734c0ec7aa21733e0055f
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
    M Source/WebGPU/WGSL/tests/valid/packing.wgsl

  Log Message:
  -----------
  [WGSL] Add support for call expressions with packed types
https://bugs.webkit.org/show_bug.cgi?id=258029
rdar://110712618

Reviewed by Mike Wyrzykowski.

Expand the global variable rewriter to support call expressions with packed values.
Calls work by unpacking all arguments, and their result is always unpacked.

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::pack):
(WGSL::RewriteGlobalVariables::getPacking):
* Source/WebGPU/WGSL/tests/valid/packing.wgsl:

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




More information about the webkit-changes mailing list