<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:lemody@gmail.com" title="Tapani Pälli <lemody@gmail.com>"> <span class="fn">Tapani Pälli</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - #version 300 es compute shaders should not be possible"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98132">bug 98132</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - #version 300 es compute shaders should not be possible"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98132#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - #version 300 es compute shaders should not be possible"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98132">bug 98132</a>
              from <span class="vcard"><a class="email" href="mailto:lemody@gmail.com" title="Tapani Pälli <lemody@gmail.com>"> <span class="fn">Tapani Pälli</span></a>
</span></b>
        <pre>commit 5bc222ebafddd14f2329f5096287b51d798a6431
Author: Jose Maria Casanova Crespo <<a href="mailto:jmcasanova@igalia.com">jmcasanova@igalia.com</a>>
Date:   Fri Feb 10 14:25:27 2017 +0100

    glsl: non-last member unsized array on SSBO must fail compilation on GLSL
ES 3.1

    From GLSL ES 3.10 spec, section 4.1.9 "Arrays":

    "If an array is declared as the last member of a shader storage block
     and the size is not specified at compile-time, it is sized at run-time.
     In all other cases, arrays are sized only at compile-time."

    In desktop GLSL it is allowed to have unsized-arrays that are
    not last, as long as we can determine that they are implicitly
    sized, which is detected at link-time.

    With this patch Mesa reports a compilation error as glslang does with
    the following shader:

    buffer SSBO { vec4 data[]; vec4 moreData;};
    void main (void)
    {
    }

    Fixes:
   
dEQP-GLES31.functional.debug.negative_coverage.log.shader.compile_compute_shader
   
dEQP-GLES31.functional.debug.negative_coverage.callbacks.shader.compile_compute_shader
   
dEQP-GLES31.functional.debug.negative_coverage.get_error.shader.compile_compute_shader

    Cc: "17.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>>
    Signed-off-by: Jose Maria Casanova Crespo <<a href="mailto:jmcasanova@igalia.com">jmcasanova@igalia.com</a>>
    Reviewed-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>></pre>
        </div>
      </p>


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

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