[webkit-changes] [WebKit/WebKit] 2d8303: [WGSL] Implement dot4I8Packed and dot4U8Packed bui...

Tadeu Zagallo noreply at github.com
Tue Jan 9 06:34:28 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2d83031a0ec49431e02a7dafaf98ce9cf533d23c
      https://github.com/WebKit/WebKit/commit/2d83031a0ec49431e02a7dafaf98ce9cf533d23c
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-01-09 (Tue, 09 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantFunctions.h
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/TypeDeclarations.rb
    M Source/WebGPU/WGSL/WGSLShaderModule.h
    M Source/WebGPU/WGSL/tests/valid/overload.wgsl

  Log Message:
  -----------
  [WGSL] Implement dot4I8Packed and dot4U8Packed built-in functions
https://bugs.webkit.org/show_bug.cgi?id=265343
rdar://118796882

Reviewed by Mike Wyrzykowski.

These functions were recently added to the spec [1] & [2].

[1]: https://www.w3.org/TR/WGSL/#dot4U8Packed-builtin
[2]: https://www.w3.org/TR/WGSL/#dot4I8Packed-builtin

* Source/WebGPU/WGSL/ConstantFunctions.h:
(WGSL::CONSTANT_FUNCTION):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::emitNecessaryHelpers):
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::usesDot4I8Packed const):
(WGSL::ShaderModule::setUsesDot4I8Packed):
(WGSL::ShaderModule::usesDot4U8Packed const):
(WGSL::ShaderModule::setUsesDot4U8Packed):
* Source/WebGPU/WGSL/tests/valid/overload.wgsl:

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




More information about the webkit-changes mailing list