Bug 27300 - [r300g] Oolite fragment shaders are too big for r3xx
Summary: [r300g] Oolite fragment shaders are too big for r3xx
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-24 19:21 UTC by Darren Salt
Modified: 2010-05-08 09:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Shader log from Oolite (47.82 KB, text/plain)
2010-03-26 08:21 UTC, Darren Salt
Details

Description Darren Salt 2010-03-24 19:21:37 UTC
Hit while trying out the r300g driver by playing Oolite (svn HEAD, no OXPs needed, but shaders turned up to full).

Setup: Debian testing/unstable, with bits from experimental.
  xserver-xorg-core 1.7.5
  xserver-xorg-video-radeon 6.12.192-1
  libdrm 2.4.19 (local build, with packaging adapted from 2.4.18-4)
  mesa git 2ad8692a (local build, with packaging adapted from 7.7-4)

Oolite: svn://svn.berlios.de/oolite-linux/trunk
Comment 1 Corbin Simpson 2010-03-26 04:33:35 UTC
Reverting cba6430524198a1bdcdeada03cbe946a454f3935 stops the hardlock, but now there's a failing vertex shader. Looking into it now.
Comment 2 Corbin Simpson 2010-03-26 04:57:09 UTC
Tired, commented on wrong bug. Investigating yours now.
Comment 3 Corbin Simpson 2010-03-26 05:40:07 UTC
Can't figure out how to build your program. :T

You hit the generic "error in shader compiler" assert. Could you run again with RADEON_DEBUG=fp set, and attach that log here?
Comment 4 Darren Salt 2010-03-26 08:21:21 UTC
Created attachment 34486 [details]
Shader log from Oolite

One log file, as requested. (This is with shader-effects-level set to 3.)
Comment 5 Darren Salt 2010-03-26 08:31:41 UTC
About compiling Oolite: "make -f Makefile pkg-deb" works here. ("debuild binary" would be fine, but debian/changelog is generated.)

http://www.oolite.org/download has links to binaries.
Comment 6 Corbin Simpson 2010-03-27 14:08:20 UTC
I won't be able to reproduce exactly, without finding one of my older cards. Also oolite appears to refuse to enable fancy shaders. :T

Basically, the shader is too big for the hardware. There's no obvious optimizations to be done, but I bet I could find some, if the shader is known to work on fglrx.

I've pushed a patch to make it so that you get an error message instead of just an empty assertion.
Comment 7 Marek Olšák 2010-05-08 09:22:22 UTC
Closing because the game loads longer shaders than hardware can handle.


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.