Bug 44126 - [r300g] 0ad: carpet textures "flash" and get hidden by ground texture.
Summary: [r300g] 0ad: carpet textures "flash" and get hidden by ground texture.
Status: RESOLVED WORKSFORME
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-24 10:57 UTC by Fabio Pedretti
Modified: 2014-09-05 09:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
example of carpets partially hidden by ground texture (1.42 MB, image/png)
2011-12-24 10:57 UTC, Fabio Pedretti
Details

Description Fabio Pedretti 2011-12-24 10:57:09 UTC
Created attachment 54794 [details]
example of carpets partially hidden by ground texture

Since 0ad alpha 8 there is a new faction: Persians. Their civic center has a couple of carpets on it (just start a map with Persians and see the main building). When you zoom (using mouse wheel) or rotate (using Q and E keys) the screen, the carpets on the civic center "flash" and get partially hidden by the ground texture.

An example screenshot is attached.

Llvmpipe doesn't have this problem, as well other videos and screenshots found on the net.
Comment 1 Tomasz P. 2012-12-17 21:32:43 UTC
With current mesa and 0ad a11 all seems to be good.
Comment 2 Fabio Pedretti 2012-12-18 16:29:46 UTC
Still reproducible with current mesa git and 0ad svn on my RV530. Probably you have a different chip.
Comment 3 Fabio Pedretti 2014-09-04 09:31:26 UTC
The game model was modified moving the carpets up a bit, and the issue is no longer reproducible now.

No idea if that was the proper fix or just a workaround for a mesa bug. Setting as WORKSFORME then.
Comment 4 Marek Olšák 2014-09-04 13:17:51 UTC
Flickering when 2 primitives exactly intersect each other and vertex positions are not equal is a quite common programming mistake in games. Drivers cannot do anything about it.
Comment 5 Fabio Pedretti 2014-09-05 09:38:16 UTC
For some reason this only happened with mesa r300 driver, however.

A similar issue with the main menu (fixed in the game in a similar way) happened only on i915.


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.