[webkit-changes] [WebKit/WebKit] 20a06e: [WGSL] Don't compute size and alignment for struct...

Tadeu Zagallo noreply at github.com
Mon May 22 23:17:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 20a06e254bc94121f60dba1db7a4bed90380890d
      https://github.com/WebKit/WebKit/commit/20a06e254bc94121f60dba1db7a4bed90380890d
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-05-22 (Mon, 22 May 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp

  Log Message:
  -----------
  [WGSL] Don't compute size and alignment for structs that shouldn't be packed
https://bugs.webkit.org/show_bug.cgi?id=257122
rdar://109658987

Reviewed by Dan Glastonbury.

Structs that shouldn't be packed might contain types for which we don't compute
size and alignment, so we shouldn't try to compute it.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):

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




More information about the webkit-changes mailing list