Bug 24322 - [r300, r300g]mesa-7.6 & 7.7 show bogus rendering wih boswars game
Summary: [r300, r300g]mesa-7.6 & 7.7 show bogus rendering wih boswars game
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r300 (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-05 07:56 UTC by Thierry Vignaud
Modified: 2010-05-18 02:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
correct map with mesa-7.6 (181.57 KB, image/png)
2009-10-05 07:56 UTC, Thierry Vignaud
Details
bogus rendering of the map a few meters up to the north (still mesa-7.6) (108.70 KB, image/png)
2009-10-05 07:57 UTC, Thierry Vignaud
Details
bogus rendering of them main menu with mesa 7.3...7.5.1 (461.59 KB, image/png)
2009-10-05 08:00 UTC, Thierry Vignaud
Details
correct rendering of them main menu with mesa 7.6 (463.08 KB, image/png)
2009-10-05 08:01 UTC, Thierry Vignaud
Details

Description Thierry Vignaud 2009-10-05 07:56:38 UTC
Created attachment 30078 [details]
correct map with mesa-7.6

When using GL rendering, the boswars game make r300 driver shows distorted rendering.
This bug affect mesa-7.3, 7.5.1, 7.6 and current 7.7 snapshots.
Tested on 3 r300 cards:
- one xpress200 (aka RS380) (IGP)
- one Radeon 9600 (RV350 AP)
- one x1650 pro (aka Rv530)

I see artefacts (See attached screenshots).

How to reproduce:
- run boswars (type "bos")
- in the 'Video' configuration dialog of the 'Options' menu,
  tick "Use OpenGl"
- restart the game.
- in the main menu, choose "Start Game", then "bridge.map" then "Start"
- move any unit along the coast to the north
- after a few meters, the map is corrupted (only at some places).
(Other map exhibit the same bug with r300 driver)

I don't know if it's related, but it makes the r300 driver output the following:

boswars: radeon_lock.c:65: radeonGetLock: Assertion `drawable != ((void *)0)' failed.
Comment 1 Thierry Vignaud 2009-10-05 07:57:19 UTC
For the record, I see this on both ia32 and x86_64
Comment 2 Thierry Vignaud 2009-10-05 07:57:57 UTC
Created attachment 30079 [details]
bogus rendering of the map a few meters up to the north (still mesa-7.6)
Comment 3 Thierry Vignaud 2009-10-05 08:00:15 UTC
Created attachment 30080 [details]
bogus rendering of them main menu with mesa 7.3...7.5.1

I think boswars practices more code paths in the r300 driver.
Whereas other games (such as openarena) always works fine with whatever mesa version is used, boswars often exhibits bugs in mesa.
For example, up to 7.6, its main menu is bogusly rendered with GL rendering
Comment 4 Thierry Vignaud 2009-10-05 08:01:13 UTC
Created attachment 30082 [details]
correct rendering of them main menu with mesa 7.6
Comment 5 Fabio Pedretti 2009-11-25 03:00:34 UTC
1) The failed assertion on exit is now fixed in mesa_7_6_branch and mesa_7_7_branch branches (bug #22851) and the fix will be merged on master;
2) I am not able to reproduce the corruption; the bridge map is very slow, however this is another problem that could be fixed with r300-blit branch from http://cgit.freedesktop.org/~osiris/mesa/ ;

Thierry Vignaud, could you retest with current mesa_7_6_branch or mesa_7_7_branch branches?
Comment 6 Thierry Vignaud 2009-11-25 06:55:37 UTC
I'll try tonight.
Btw the above repository is unusable (using git-1.6.5.3):
$ git clone git://anongit.freedesktop.org/~osiris/mesa
(...)
remote: Total 262235 (delta 216714), reused 257786 (delta 212693)
Receiving objects: 100% (262235/262235), 80.39 MiB | 323 KiB/s, done.
Resolving deltas: 100% (216714/216714), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.
Comment 7 Thierry Vignaud 2009-11-25 07:05:14 UTC
OK I manually checked that branch. I'll try it too tonight
Comment 8 Fabio Pedretti 2009-11-25 07:16:00 UTC
(In reply to comment #7)
> OK I manually checked that branch. I'll try it too tonight
> 

Note that that branch is experimental and it only works with KMS atm, see also bug #25142, comment #6.
Comment 9 Thierry Vignaud 2009-12-01 08:28:39 UTC
After a little holydays and after having fighted the "mesa needs " flu syndrom, I've tested the master branch of drm+mesa as of today and here's the results:

- the failed assertion on exit doesn't happen anymore
  (I haven't tested but I supposed it's the same in the 7_6
  and 7_7 branches)
  Do you expect me to still test those branches?

- the bogus rendering of the ground on the map is fixed with r300
  (but it still happens with r300g (gallium) but it's quite a lot
  faster though [it's the reverse with openarena which is faster with r300
  rather than with r300g])
  I'll test your r300-blit branch soon for that.
Comment 10 Fabio Pedretti 2009-12-01 08:57:55 UTC
> - the failed assertion on exit doesn't happen anymore
>   (I haven't tested but I supposed it's the same in the 7_6
>   and 7_7 branches)
>   Do you expect me to still test those branches?

I already verified it was fixed also on 7_6 and 7_7 branches.

> - the bogus rendering of the ground on the map is fixed with r300

Nice, closing this bug then.

>   (but it still happens with r300g (gallium) but it's quite a lot
>   faster though [it's the reverse with openarena which is faster with r300
>   rather than with r300g])

You may want to open new bugs for these issues.
Thanks.
Comment 11 Thierry Vignaud 2009-12-01 09:25:56 UTC
Btw, the r300-blit branch is as slow as master.
Comment 12 Thierry Vignaud 2009-12-09 07:31:10 UTC
Hum, I was wrong, the bogus rendering still occurs, with both r300 & r300ng
Comment 13 Marek Olšák 2010-05-15 21:31:57 UTC
Could you please test r300g now?
Comment 14 Fabio Pedretti 2010-05-18 01:21:04 UTC
(In reply to comment #13)
> Could you please test r300g now?

On my RV530 both r300/r300g are working fine.
Comment 15 Marek Olšák 2010-05-18 02:06:45 UTC
Ok, 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.