[Bug 28800] [r300c, r300g] Texture corruption with World of Warcraft

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 16 06:12:20 PST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28800

--- Comment #20 from Álmos <aaalmosss at gmail.com> 2010-12-16 06:12:18 PST ---
Created an attachment (id=41170)
 View: https://bugs.freedesktop.org/attachment.cgi?id=41170
 Review: https://bugs.freedesktop.org/review?bug=28800&attachment=41170

r300g_multitexturing.diff

I played around with the tmu texture cache region assignment code, read the
corresponding part of the r3xx register manual, and deduced the following:
- you must assign different region for different textures
- assigned regions must not overlap
The existing code guarantees none of these, especially if there are partial
updates (which are quite common). The texture corruption is the result of the
tmu loading different textures into the same cache area (possibly in different
formats), and only one of them won't be garbage. This only applies to r3xx and
r4xx, because r5xx ignores this parameter and assigns cache automatically.

My patch doesn't guarantee anything either, is meant to be a proof-of-concept
(or more like a hackload of hacky hacks), that almost completely fixes
texturing in ut2004, vastly improves the situation in etqw (the corruption
occurs only on strogg architecture and vehicles instead of almost everywhere),
and changes nothing in googleearth. Doom3 would also be a good test, but it
crashes since I increased GART from 64MB to 256MB.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list