Bug 44126

Summary: [r300g] 0ad: carpet textures "flash" and get hidden by ground texture.
Product: Mesa Reporter: Fabio Pedretti <pedretti.fabio>
Component: Drivers/Gallium/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: example of carpets partially hidden by ground texture

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.