Bug 29276

Summary: [r300g][regression] 0ad game no longer starts
Product: Mesa Reporter: Fabio Pedretti <pedretti.fabio>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Fabio Pedretti 2010-07-28 01:16:48 UTC
I noticed a regression with the game 0ad: it crashes with swrastg and it stucks at game start with r300g. 

Bisecting, with both r300g and swrastg:
# good: [815e79e72c1f4aa849c0ee6103621685b678bc9d] draw: re-order optimization passes depending on LLVM version, 32/64-bit
git bisect good 815e79e72c1f4aa849c0ee6103621685b678bc9d
# bad: [7b7845a076c933e096ac511b4184141ba194449a] glx: Move WaitGL, WaitX, UseXFont to context vtable functions
git bisect bad 7b7845a076c933e096ac511b4184141ba194449a

With ab434f6b7641a64d30725a9ac24929240362d466 it works with swrastg but it stucks with r300g. Trying to bisect in between I get other crashes that are apparently fixed later.
Comment 1 Marek Olšák 2010-07-28 02:27:40 UTC
The game works fine here with r300g.
Comment 2 Fabio Pedretti 2010-07-28 02:55:53 UTC
Note: with current mesa git the problem appears only with r300g, not with swrastg. I have a RV530. After starting the game (7732 release, with default config, i.e. no ~/.config/0ad/config/local.cfg file) I get:

TIMER| InitVfs: 53.8333 ms
TIMER| InitScripting: 1.18771 ms
TIMER| CONFIG_Init: 4.14799 ms

and the game blocks.
Comment 3 Kristian Høgsberg 2010-07-29 07:07:58 UTC
(In reply to comment #2)
> Note: with current mesa git the problem appears only with r300g, not with
> swrastg. I have a RV530. After starting the game (7732 release, with default
> config, i.e. no ~/.config/0ad/config/local.cfg file) I get:
> 
> TIMER| InitVfs: 53.8333 ms
> TIMER| InitScripting: 1.18771 ms
> TIMER| CONFIG_Init: 4.14799 ms
> 
> and the game blocks.

I don't have an r300 here to test with, could you run it under gdb and Ctrl-C it when it hangs and the type 'bt' to get a backtrace?  Also, did you do 'make clean' first?  Mesa has trouble building cleanly when jumping between revisions.
Comment 4 Marek Olšák 2010-07-31 21:51:19 UTC
Make sure you have both the driver and libGL*.so from git properly installed, and please let me know if you still have problems even with latest libGL*.so.
Comment 5 Fabio Pedretti 2010-08-03 00:05:20 UTC
This was fixed with 1f1928db001527c3dcf1d78d6a5d2ef8f519327b .

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.