Bug 22894 - [G45] Heroes of Newerth shader issues
Summary: [G45] Heroes of Newerth shader issues
Status: RESOLVED DUPLICATE of bug 21707
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact:
URL: http://heroesofnewerth.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 11:40 UTC by Sven Arvidsson
Modified: 2009-10-09 14:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
HoN console log (87.28 KB, text/plain)
2009-07-22 23:57 UTC, Ivan Bulatovic
Details
first failing shader (6.75 KB, text/plain)
2009-09-11 13:07 UTC, Sven Arvidsson
Details
diff between working and failing shader (2.13 KB, text/plain)
2009-09-24 05:58 UTC, Sven Arvidsson
Details

Description Sven Arvidsson 2009-07-22 11:40:23 UTC
The game Heroes of Newert which is currently in a closed beta is almost completely white, possibly due to shader problems. 

Beta keys are available on request:
http://www.phoronix.com/forums/showpost.php?p=82671&postcount=129

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: 6f3fc6b20f3daedab02e31f49678d4d2ff0fa7a3
-- xserver: 1.6.2
-- mesa: ede9f3b52ecb27ada81fee06a943bb595c60eaee
-- drm: 9aed44beeac4f250a58c792d64a4dee1dde3d086
-- kernel: 2.6.30
Comment 1 Ivan Bulatovic 2009-07-22 23:56:25 UTC
I've got the same problem, white and black box-es in menu screen.

kernel: 2.6.31-rc3
xf86-video-intel: 2.8.0
mesa: 7.5.1
chipset: GM965/x3100
distro: Arch linux 64_bit
mobo: Dell Vostro 1310
Comment 2 Ivan Bulatovic 2009-07-22 23:57:49 UTC
Created attachment 27934 [details]
HoN console log
Comment 3 Olaf Encke 2009-07-24 16:59:31 UTC
Same here on Foxconn G45M-S board running Ubuntu Karmic + xorg-edgers ppa
Comment 4 Adam Jackson 2009-08-24 12:32:53 UTC
Mass version move, cvs -> git
Comment 5 Sven Arvidsson 2009-09-11 13:07:20 UTC
Created attachment 29425 [details]
first failing shader

I'm attaching the first shader which the preprocessor fails on, according to the log:

 Loading VertexShader 'simple_color_flat'
 Loading PixelShader 'simple_color_flat'
 Compiling pixel shader: simple_color_flat.psh (ps_glsl)
 Error: syntax error in preprocessor expression.
 Error: failed to preprocess the source.
Comment 6 Mateusz Kaduk 2009-09-24 02:54:55 UTC
(In reply to comment #5)
> Created an attachment (id=29425) [details]
> first failing shader
> 
> I'm attaching the first shader which the preprocessor fails on, according to
> the log:
> 
>  Loading VertexShader 'simple_color_flat'
>  Loading PixelShader 'simple_color_flat'
>  Compiling pixel shader: simple_color_flat.psh (ps_glsl)
>  Error: syntax error in preprocessor expression.
>  Error: failed to preprocess the source.
> 

I am also beta testing this game (HoN) on GM965 and it works with mesa 7.6
Comment 7 Sven Arvidsson 2009-09-24 04:22:58 UTC
Indeed it looks like one of the updates to the game added a new version of the shaders. 

Is there any point in having this bug open now? The original problem is gone for this game, but I guess it still remains in Mesa. Is the attached shader enough to give a clue as to what the problem was?
Comment 8 Sven Arvidsson 2009-09-24 05:58:47 UTC
Created attachment 29828 [details]
diff between working and failing shader

I'm attaching a diff between a working and a failing shader. The difference seems to be in where comments are added. Could this be it?
Comment 9 Michael Kirzinger 2009-09-24 06:00:52 UTC
(In reply to comment #7)
> Indeed it looks like one of the updates to the game added a new version of the
> shaders.

The problem was comments in preprocessor lines. They were removed in version 0.1.46.1 of HoN (on 2009-09-22). It doesn't look like they are handled in Mesa and instead just cause an error.

Comment 10 Eric Anholt 2009-10-09 14:49:31 UTC
Since we've identified the problem and there's another bug report about it, let's close it since the current version of this game works.


*** This bug has been marked as a duplicate of bug 21707 ***


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.