Summary: | [r300g] Heroes of Newerth slow and corrupted with libtxc_dxtn.so | ||
---|---|---|---|
Product: | Mesa | Reporter: | Pavel Ondračka <pavel.ondracka> |
Component: | Drivers/DRI/r300 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | pedretti.fabio |
Version: | git | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
possible fix
fix r1xx/r2xx/r3xx |
Description
Pavel Ondračka
2010-06-09 01:36:52 UTC
(In reply to comment #0) > I wanted to try compressed texture support with r300g so I installed > libtxc_dxtn.so and I got some nice improvements (for example in Neverwinter > Nights textures looks many times better). However in Heroes of Newerth (HoN) > there is big slowdown in menu and while in game it is so slow it almost looks > like frozen and there is massive corruption. might be bug in the drm checker. > [drm:r100_cs_track_texture_print] *ERROR* bpp 4 > [drm:r100_cs_track_texture_print] *ERROR* compress format 2 Dunno how that would happen, but compressed textures should always show up with a bpp of 1 (with 4 the calculated size will be 4 times as big as needed). I know there were some bugs wrt compressed textures in that area, but pretty sure it should be fixed in 2.6.33... Should I try some newer kernel? Yes, please give it a try. Which one, 2.6.34 or 2.6.35-rc2? Either this: git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-linus or 2.6.34 or any later version. Sadly, this bug is present also with kernel 2.6.35-rc2. Do you need any more info or logs? I think an explanation could be that there are two packets for the same texture unit in the command stream - if the first one is compressed, it would set cpp to 1 and set the compress bits, but if the second one is uncompressed it would set cpp according to format but the compress bits would stay as it's only written if the format is compressed. Created attachment 36214 [details] [review] possible fix If my theory is right, the attached patch might help (that's just a quick try, r100/r200 would need the same). (In reply to comment #8) > Created an attachment (id=36214) [details] > possible fix > > If my theory is right, the attached patch might help (that's just a quick try, > r100/r200 would need the same). I was having the same crash problem with sauerbraten game (bug #27756) and this patch seems to fix it (tested with linux 2.6.34). When submitting the patch could you push it also to linux stable branch 2.6.32/33/34? There are still 2 similar bugs that would be nice to have fixed: bug #27755 and bug #27507. Thanks. *** Bug 27756 has been marked as a duplicate of this bug. *** Thank you Roland, with your patch Heroes of Newerth works fine again. This bug can be closed after your patch is committed. Created attachment 36226 [details] [review] fix r1xx/r2xx/r3xx This patch combines Roland's patch with the same fixes for r1xx and r2xx. Roland, if you want to sign off on it, I'll send it to Dave. Review of attachment 36226 [details] [review]: Signed-off-by: Roland Scheidegger <sroland@vmware.com> Sent to Dave. The patch has been committed to: git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-fixes And should appear in the next kernel. Closing, This patch has been included in kernel 2.6.35-rc4. This is also fixed in 2.6.34.2. |
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.