Created attachment 35461 [details] terminal output I'm trying to run Sins of a Solar Empire with Wine 1.1.43 and r300g driver. Until commit dad962bafe8ffd7fdb35c28cfb8bbd5a297c8083 I was able to enter the menu and even start a new game, however some rendering was broken (almost everything black). Now when entering menu it crashes. I'm attaching terminal output and dmesg. dad962bafe8ffd7fdb35c28cfb8bbd5a297c8083 is the first bad commit commit dad962bafe8ffd7fdb35c28cfb8bbd5a297c8083 Author: José Fonseca <jfonseca@vmware.com> Date: Tue May 4 15:41:19 2010 +0100 mesa/st: Fill in native program limits. In the lack of more fine grained capabilities in Gallium, assume that if the pipe driver supports GLSL then native limits match Mesa software limits. (cherry picked from commit 40a90cd11234a09c2477f5c9984dd6d9fac3f52c) :040000 040000 cfc8a638f5c8e29d63316bc78ba58d808d064c1a 71c19fdbecf5fd0e113de6f79b4c00fd1eac4f29 M src
Created attachment 35462 [details] dmesg
Hi Pavel, The commit you mention enables features which were until now never advertised -- many applications were not using GLSL because they thought the hardware had no native support for it. It's likely the bug is in the this feature (GLSL compilation) and not on the commit itself. Can you get a stack trace showing where inside the driver the crash is happening? Jose
(In reply to comment #2) > Can you get a stack trace showing where inside the driver the crash is > happening? How can I do that?
Created attachment 35464 [details] wine backtrace I was able to get a Wine backtrace, I hope this is helpful.
From the first log: "r300: Max size of the constant buffer is 256*4 floats." immediately followed by abort in the code. We really need fine-grained shader limits, applications seem to make fatal decisions based on them.
Could you please re-test the game with current mesa git?
Created attachment 35650 [details] wine log It still doesn't work, attaching new log.
OK so the problem is the game creates a larger constant buffer than hw can handle, but it seems to use only a small portion of the buffer. I've changed the code so that it does not abort (commit 93c997a9146e0b50186df684f4847fb0124ada11). Please close the bug if it helps you.
The crash is gone now, closing
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.