<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>302750</bug_id>
          
          <creation_ts>2025-11-18 17:24:37 -0800</creation_ts>
          <short_desc>WGSL compilation: cannot use override value in constant expression</short_desc>
          <delta_ts>2026-01-22 09:31:07 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGPU</component>
          <version>Safari 26</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>georgsh-yateam</reporter>
          <assigned_to name="Tadeu Zagallo">tzagallo</assigned_to>
          <cc>mwyrzykowski</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2159740</commentid>
    <comment_count>0</comment_count>
    <who name="">georgsh-yateam</who>
    <bug_when>2025-11-18 17:24:37 -0800</bug_when>
    <thetext>WGSL shader don&apos;t compiles on macos/safari when declared 2 same arrays.
But it compiles on linux/chrome, android/chrome.

Error message also strange, override keyword not present in wgsl source:

=====
const PTK_HASHDATA   = array&lt;array&lt;u32, 16&gt;, 1&gt;(array&lt;u32, 16&gt;(0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0));
const EAPOL_HASHDATA = array&lt;array&lt;u32, 16&gt;, 1&gt;(array&lt;u32, 16&gt;(0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0));

@group(0) @binding(0) var&lt;storage, read&gt; input: array&lt;u32&gt;;
@group(0) @binding(1) var&lt;storage, read_write&gt; output: array&lt;u32&gt;;

@compute @workgroup_size(64)
fn main(@builtin(global_invocation_id) gid: vec3&lt;u32&gt;) {
  output[gid.x] = gid.x;
}
=====

Quick check:
https://georg95.github.io/wgsl-safari-bug.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160104</commentid>
    <comment_count>1</comment_count>
    <who name="">georgsh-yateam</who>
    <bug_when>2025-11-19 17:36:17 -0800</bug_when>
    <thetext>So, actually issue is you can&apos;t declare 2-d const arrays.
Can change to const to var&lt;private&gt;, but probably with performance penalty</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160105</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-11-19 17:46:26 -0800</bug_when>
    <thetext>&lt;rdar://problem/165093959&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2173255</commentid>
    <comment_count>3</comment_count>
    <who name="Tadeu Zagallo">tzagallo</who>
    <bug_when>2026-01-20 01:59:54 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56885</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174128</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-22 09:31:04 -0800</bug_when>
    <thetext>Committed 306020@main (4f07563c85a8): &lt;https://commits.webkit.org/306020@main&gt;

Reviewed commits have been landed. Closing PR #56885 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>