Bug 29737

Summary: Coldest: assertion failure when compiling shader
Product: Mesa Reporter: Sven Arvidsson <sa>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
URL: http://www.coldestgame.com/site/
Whiteboard:
i915 platform: i915 features:
Attachments: Shader from Coldest

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.

http://www.coldestgame.com/site/
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.