<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:apinheiro@igalia.com" title="Alejandro Piņeiro (freenode IRC: apinheiro) <apinheiro@igalia.com>"> <span class="fn">Alejandro Piņeiro (freenode IRC: apinheiro)</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Mesa's compiler should warn about undefined values"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94129">bug 94129</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;">CC</td>
           <td>
                
           </td>
           <td>apinheiro@igalia.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Mesa's compiler should warn about undefined values"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94129#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Mesa's compiler should warn about undefined values"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94129">bug 94129</a>
              from <span class="vcard"><a class="email" href="mailto:apinheiro@igalia.com" title="Alejandro Piņeiro (freenode IRC: apinheiro) <apinheiro@igalia.com>"> <span class="fn">Alejandro Piņeiro (freenode IRC: apinheiro)</span></a>
</span></b>
        <pre>(In reply to Kenneth Graunke from <a href="show_bug.cgi?id=94129#c0">comment #0</a>)
<span class="quote">> Many WebGL programs accidentally use undefined values, expecting them to be
> zero initialized (which is not required).  NVidia apparently issues a
> compiler warning in this case. </span >

FWIW, although it is true that NVIDIA driver seems more verbose with respect to
warnings, I have just tested on GL_VERSION = 4.5.0 NVIDIA 352.55, and I didn't
see any warning on a shader like this:

#version 130

in vec3 color;
out vec4 outColor;

void main() {
  vec4 undefined;

  outColor = vec4(color, 1.0) + undefined;
}

That shows a lot of crap on string.

<span class="quote">> We should too.</span >

If you don't mind I will take a look to this bug.

<span class="quote">> This is fairly easy to detect in NIR - see if ssa_undefs are used. </span >

Will start looking here.

<span class="quote">>  But,
> it's not clear whether we can issue warnings from that level.</span >

Ok.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>