<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - BindFragDataLocationIndexed on array fragment shader output."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96765#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - BindFragDataLocationIndexed on array fragment shader output."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96765">bug 96765</a>
              from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
        <pre>(In reply to Corentin Wallez from <a href="show_bug.cgi?id=96765#c2">comment #2</a>)
<span class="quote">> Thanks for taking a look, indeed my understanding was wrong but I found a
> Khronos bug related to this that doesn't have a formal resolution but
> indicates that while you can't bind array elements individually, "array[0]"
> should be equivalent to "array". See
> <a href="https://cvs.khronos.org/bugzilla/show_bug.cgi?id=7829">https://cvs.khronos.org/bugzilla/show_bug.cgi?id=7829</a>

> Unfortunately Chrome has been testing this on few platforms, so far it only
> tested NVIDIA proprietary (passes), fglrx (doesn't pass). It also fails on
> the OSX drivers, seemingly for the same reason as for Mesa it seems.

> Given all the above, I will fix Chromium's tests to not use indices, can you
> still consider making the [0] equivalent to no subscript?

> Thank you for your time.</span >

That does seem reasonable. As I'm not one of the cool kids with KHR access,
mind letting me know what that bug says about what to do when someone binds
both "array" and "array[0]"? Right now we store these in a map, and resolve
locations at link time (as per the spec). We don't know what's an array and
what's not at bind time.

Also, does the bug make any comments about AoA? i.e.

out vec4 foo[2][2][2]

Should you be able to bind with "foo[0][0][0]"? What about "foo[0][0]" and
"foo[0]" in that case? [Perhaps the AoA spec says something about this, I'm not
up on all the details myself.]</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>