Bug reported by Christian Ohm yesterday on the Debian BTS. Since Mesa 6.5.3, shadows are broken on r300 in Warzone2100 (starcrack-like game). During the game, alt-s toggles shadows on/off. On a r300 with mesa 6.5.[12] (or with whatever release on i945), it works fine. But 6.5.3, 7.0.1 and current master head, it basically toggles dark/light instead, as if there were shadows everywhere. It's easy to reproduce: install and launch warzone2100 (you might want to pass --window on the command line, fullscreen didn't really work here). Start a new campaign (you may skip the text intro by pressing Esc), and press alt-s several times when the game appears to see the shadows being toggled. I git bissected between 6.5.2 and 6.5.3 and found the following commit: commit 62efc4ba3eb53ca75abbe9b52feabe49a5fd56b5 Author: Aapo Tahkola <aet@rasterburn.org> Date: Thu Jan 18 05:56:13 2007 +0200 support as much of GL_EXT_stencil_two_side as we can. untested. I reverted it on top of 6.5.3, it fixed the problem. I tried to revert on top of master but there are too many conflicts for me :( Michel told me to check after disabling stencil_two_side in DRI conf, but it didn't help unfortunately, which is kind of surprising. Let me know if you need more debugging, for instance by reverting only part of the above commit. I'd be nice to fix this in mesa_7_0_branch too. thanks, Brice
The submitter adds: "The specific problem seems to be that the darkening of the shadows is applied to the whole polygon and not only the stencilled area (there are still different levels of darkening depending on the orientation of the polygon)."
Can you reproduce the bug with current mesa? Some EXT_stencil_two_side related patches has been committed about a month ago.
> 7.3 from experimental doesn't work, but is older than a month. With > MesaLib-7.5-devel-20090313.tar.gz the shadows work. > > To reproduce you will probably need version 2.2.x or smaller of Warzone > (trunk segfaults in the driver here due to some VBO stuff, on a X800 GTO). > > Best regards, > Christian Ohm Closing as fixed.
Mass version move, cvs -> git
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.