[Bug 95164] GLSL compiler (linker I think) emits assertion upon call to glAttachShader

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 27 05:36:17 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=95164

            Bug ID: 95164
           Summary: GLSL compiler (linker I think) emits assertion upon
                    call to glAttachShader
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glsl-compiler
          Assignee: idr at freedesktop.org
          Reporter: bugReporter92 at gmail.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Created attachment 123291
  --> https://bugs.freedesktop.org/attachment.cgi?id=123291&action=edit
API trace of the crash. Only 2 frames long.

After building the very latest code for GLideN64
(https://github.com/gonetz/GLideN64) 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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160427/eaa4331a/attachment.html>


More information about the intel-3d-bugs mailing list