Bug 25172 - Coldest game crashes while compiling shader
Summary: Coldest game crashes while compiling shader
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Eric Anholt
QA Contact:
URL: http://www.coldestgame.com/site/conte...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 15:06 UTC by Sven Arvidsson
Modified: 2010-01-04 10:26 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
backtrace from crash (16.15 KB, text/plain)
2009-11-18 15:35 UTC, Sven Arvidsson
Details

Description Sven Arvidsson 2009-11-18 15:06:07 UTC
The game Coldest crashes when the water shader is being compiled, this is a regression from Mesa 7.6. Bisecting leads to this commit:

e4e312d493847e07ced026b93d2b588b8036ae02 is the first bad commit
commit e4e312d493847e07ced026b93d2b588b8036ae02
Author: Eric Anholt <eric@anholt.net>
Date:   Sat May 16 01:47:44 2009 -0700

    mesa: Add an optimization path to remove use of pointless MOVs.
    
    GLSL code such as:
    	vec4 result = {0, 1, 0, 0};
    	gl_FragColor = result;
    
    emits code like:
      0: MOV TEMP[0], CONST[0];
      1: MOV OUTPUT[1], TEMP[0];
    
    and this replaces it with:
      0: MOV TEMP[0], CONST[0];
      1: MOV OUTPUT[1], CONST[0];
    
    Even when the dead code eliminator fails to clean up a now-useless MOV
    instruction (since it doesn't do live/dead ranges), this should at reduce
    dependencies.

:040000 040000 f33f0fc67d7601a1605fbfeb702252208609ad04 a69c7263c3943f2ec9a074ae781d1bb68c0dd341 M	src

The shaders can be viewed here:
https://www.nemebean.com/svn/coldest/shaders/

System environment:
-- chipset: G45 / ICH10R
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- Machine or mobo model: Asus P5Q-EM
-- Display connector: DVI
-- KMS: enabled
-- xf86-video-intel: 14109abf285866ad4cd99d0cd16b0954a0a73a62
-- xserver: 1.7.0
-- mesa: e8eec9385497053a4172deeff9c0ff2726a10f3b
-- drm: 83a35b68f45cebc70152e55ed3f99db485c9a7cd
-- kernel: 2.6.32-rc7 (debian)
Comment 1 Sven Arvidsson 2009-11-18 15:35:34 UTC
Created attachment 31301 [details]
backtrace from crash
Comment 2 Sven Arvidsson 2010-01-04 10:26:08 UTC
The game works with git master a3abb9d1cc4698e45e5d794919e8c27a3d7e5908


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.