<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GLSL compiler (linker I think) emits assertion upon call to glAttachShader"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95164">95164</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GLSL compiler (linker I think) emits assertion upon call to glAttachShader
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>glsl-compiler
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bugReporter92@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=123291" name="attach_123291" title="API trace of the crash. Only 2 frames long.">attachment 123291</a> <a href="attachment.cgi?id=123291&action=edit" title="API trace of the crash. Only 2 frames long.">[details]</a></span>
API trace of the crash. Only 2 frames long.

After building the very latest code for GLideN64
(<a href="https://github.com/gonetz/GLideN64">https://github.com/gonetz/GLideN64</a>) on the experimental_blend branch, I get
the following assertion from a debug build of mesa:

brw_fs_channel_expressions.cpp:435: virtual ir_visitor_status
ir_channel_expressions_visitor::visit_leave(ir_assignment*): Assertion
`!"should have been lowered"' failed.

I have attached an apitrace of the event which contains the shader code (kind
of auto generated by c++, so hard to get otherwise). I couldn't reproduce the
problem with the standalone src/glsl/glsl_compiler because some of the shaders
wouldn't build because of something that looked like a bug in the standalone.
This same assertion happens when I build 11.1.3 from source.
All the shaders (as logged using MESA_DEBUG=log) compiled fine with glslang,
but I think the crash was during linking so that probably isn't relevant.

Using the version 11.1.3 from my distro (without assertions) (Debian Testing),
then the shader compiles and creates totally mangled rendering results. This
may be unrelated.

Even if the shader is totally invalid (it works well for other contributers on
a variety of machines), it should probably not be triggering an assertion.

Let me know what other information would be helpful.</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>