Bug 29737 - Coldest: assertion failure when compiling shader
Summary: Coldest: assertion failure when compiling shader
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL: http://www.coldestgame.com/site/
Depends on:
Reported: 2010-08-22 14:10 UTC by Sven Arvidsson
Modified: 2010-08-22 18:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Shader from Coldest (1.49 KB, text/plain)
2010-08-22 14:10 UTC, Sven Arvidsson

Description Sven Arvidsson 2010-08-22 14:10:12 UTC
Created attachment 38073 [details]
Shader from Coldest

One of the shaders in the game "Coldest" is causing an assertion failure when compiled:

ir_constant_variable.cpp:143: virtual ir_visitor_status ir_constant_variable_visitor::visit_enter(ir_call*): Assertion `var' failed.

I _think_ the one attached is the shader in question, at least it's the last one dumped when MESA_GLSL=dump is used.

Comment 1 Eric Anholt 2010-08-22 18:36:03 UTC
Thanks.  I cut the shader down to the minimum code to reproduce, and it was pretty simple:

commit dad8f7a19c8819a6b9f02ef9059384ca09c4ac42
Author: Eric Anholt <eric@anholt.net>
Date:   Sun Aug 22 18:28:47 2010 -0700

    glsl-constant-folding-call-1: New test for bug #29737.

commit 137b8397fa5cc5d70e86a4b14d6be9326340f584
Author: Eric Anholt <eric@anholt.net>
Date:   Sun Aug 22 18:25:55 2010 -0700

    glsl: Don't tree-graft in an expression in place of a function outval.
    Fixes: glsl-constant-folding-call-1 (bug #29737)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.