Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: eee7c8b1e56eb9439fbd4aea07e0ff195f64fa20
      
https://github.com/WebKit/WebKit/commit/eee7c8b1e56eb9439fbd4aea07e0ff195f64fa20
  Author: Tadeu Zagallo <tzaga...@apple.com>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp

  Log Message:
  -----------
  [WGSL] Generated metal source does not compile
https://bugs.webkit.org/show_bug.cgi?id=268242
rdar://121764913

Reviewed by Mike Wyrzykowski.

The GlobalVariablRewriter was using a HashSet to track reads, then using it to
insert the used parameters. However, since HashSets don't preserve order the
parameters could be inserted out of order. Replacing the HashSet with a
ListHashSet fixes the problem.

* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::RewriteGlobalVariables::visit):

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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to