<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [GLSL] Unused arrays declared without a size should be handled like arrays of size 1."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106915#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [GLSL] Unused arrays declared without a size should be handled like arrays of size 1."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106915">bug 106915</a>
              from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
        <pre><span class="quote">> (In reply to Jason Ekstrand from <a href="show_bug.cgi?id=106915#c3">comment #3</a>)
> > I really hate it, but I fear they may be allowed.  From the GLSL 4.60 spec
> > in the section on UBO and SSBO layouts:
> > 
> > > The shared qualifier overrides only the std140, std430, and packed
> > > qualifiers; other qualifiers are inherited. The compiler/linker will
> > > ensure that multiple programs and programmable stages containing this
> > > definition will share the same memory layout for this block, as long
> > > as all arrays are declared with explicit sizes and all matrices have
> > > matching row_major and/or column_major qualifications (which may come
> > > from a declaration outside the block definition).</span >

s[] is either illegal or it is implicitly sized as though it we s[1]. 
Therefore either linking fails (as we currently do) or the application gets
zero guarantees about the layout of the SSBO regardless of the declared layout
qualifiers because a different shader using the same declaration may implicitly
size s[] to a different size.

This bug is about whether s[] is a link-time error or an implicit size of 1. 
The quoted text above has absolutely nothing to do with that because it
requires that s[] be explicitly sized.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>