Bug 29953 - [r300g] Heroes of Newerth: texture problems
Summary: [r300g] Heroes of Newerth: texture problems
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL: http://www.heroesofnewerth.com/downlo...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 15:49 UTC by Sven Arvidsson
Modified: 2011-06-08 19:26 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Screenshot (9.52 KB, image/jpeg)
2010-09-01 15:49 UTC, Sven Arvidsson
Details
RADEON_DEBUG=tex log (163.68 KB, text/plain)
2010-09-01 15:51 UTC, Sven Arvidsson
Details
Glimpse of the S2 logo (3.94 KB, image/png)
2010-09-12 14:12 UTC, Sven Arvidsson
Details
Missing flag texture (r300g vs llvmpipe) (47.36 KB, image/png)
2010-09-12 14:13 UTC, Sven Arvidsson
Details

Description Sven Arvidsson 2010-09-01 15:49:32 UTC
Created attachment 38370 [details]
Screenshot

The game Heroes of Newerth is showing problems when texture compression (through libtxc_dxtn) is used: most of the menu becomes totally black.

Removing libtxc_dxtn.so, or launching the game with MESA_EXTENSION_OVERRIDE="-GL_EXT_texture_compression_s3tc -GL_S3_s3tc" makes it work again. (Though the S2 Games logo that should be visible before the menu loads is still not there with S3TC disabled)

Neither llvmpipe or softpipe seems to be affected by this problem.

I have tried git from a few months back, and the result is the same, so I don't think this is a regression.

System environment:
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- GPU: RV570
-- Model: Asus EAX1950Pro 256MB
-- Display connector: DVI
-- xf86-video-ati: fd686668289258ffaf6b81057545e50612aac6a8
-- xserver: 1.9.0
-- mesa: dd5ef33e3c2ac7886ca71344e41201d0be2062c0
-- drm: b61e81a191d3a5c269c5f7c40199aebc9ebc034c
-- kernel: 2.6.35
Comment 1 Sven Arvidsson 2010-09-01 15:51:40 UTC
Created attachment 38371 [details]
RADEON_DEBUG=tex log
Comment 2 Pavel Ondračka 2010-09-03 07:17:16 UTC
This looks like a regression, but not in mesa. I've just installed Fedora 14 and I see this bug now too. I was using the same kernel (2.6.35), libdrm (2.4.21) and mesa before upgrade, so it looks like this was broken by either xserver or ati driver. I had xserver 1.8 and xf86-video-ati-6.13.0 before. Sadly I'm not skilled enough to build my own xserver and I can't bisect xf86-video-ati past 	ea37d24b1b6d4cbcf73e680846de25b72af216e3. Sven, maybe you could try going back to xserver 1.8 and xf86-video-ati-6.13.0 to see if it helps?
BTW I'm using mesa from just before glsl2 merge, to evade bug 29754.
Comment 3 Sven Arvidsson 2010-09-03 08:16:08 UTC
Interesting, I did try older versions of a lot of stuff (drm, xf86-ati, mesa) but not the Xserver, so that could very well be it!
Comment 4 Pavel Ondračka 2010-09-03 13:46:04 UTC
(In reply to comment #3)
> Interesting, I did try older versions of a lot of stuff (drm, xf86-ati, mesa)
> but not the Xserver, so that could very well be it!

Yeah, or maybe you didn't go back enough. BTW with libtxc_dxtn.so I'm now also seeing black screen in Savage 2 which you mentioned in bug 28517.
Comment 5 Sven Arvidsson 2010-09-04 13:12:23 UTC
I'm quite stumped, I've gone back to xserver 1.8.0, xf86-video-ati 6.13.0, older Mesa etc, but still haven't found a working configuration. :-/

The problems in Savage 2 have been much more intermittent, sometimes mostly black, sometimes working fine, with HoN it's 100% reproducible.
Comment 6 Pavel Ondračka 2010-09-04 13:59:01 UTC
(In reply to comment #5)
> I'm quite stumped, I've gone back to xserver 1.8.0, xf86-video-ati 6.13.0,
> older Mesa etc, but still haven't found a working configuration. :-/
> 
> The problems in Savage 2 have been much more intermittent, sometimes mostly
> black, sometimes working fine, with HoN it's 100% reproducible.

Yeah, this is stupid. I've also compiled this packages so I'm now actually at almost the same configuration as before (identic kernel, identic xf86-video-ati, same mesa etc...) and I also can't find a working configuration. If I have some more time I'll reinstall fedora 13 and try this from the other side (upgrading components until I find a non working configuration) :-(
Comment 7 Alexandre Derumier 2010-09-10 04:21:58 UTC
I've the same problem with Hon with libtxc_dxtn enabled, using r600c driver. (xorg 1.8,kernel 2.6.36-rc3 , mesa-git,libdrm-git,xf86-video-ati-git).
Comment 8 Sven Arvidsson 2010-09-10 06:08:09 UTC
(In reply to comment #7)
> I've the same problem with Hon with libtxc_dxtn enabled, using r600c driver.
> (xorg 1.8,kernel 2.6.36-rc3 , mesa-git,libdrm-git,xf86-video-ati-git).

Any idea when it stopped working?
Comment 9 Alexandre Derumier 2010-09-11 06:51:09 UTC
for me, Hon had never worked with libtxc_dxt on.

(i think i was using 2.6.33 or 2.6.34 kernel when Hon was released)
Comment 10 Sven Arvidsson 2010-09-12 14:12:21 UTC
Created attachment 38653 [details]
Glimpse of the S2 logo

Some more observations:

- If bug 28459 is anything to go by, the game did at one point work on r300g with compressed textures.

- I sometimes get a very quick fullscreen flicker when starting HoN with libtxc_dxtn. Not sure how to describe it, something like a mosiac of my normal screen?

- I can sometimes catch a brief glimpse of the S2Games logo during startup. I will attach a screenshot. For reference, this is how the logo should look: http://www.s2games.com/images/home_s2logo.gif

- There are some other subtle missing textures, even when the game is run without libtxc_dxtn, like a missing flag in the language settings.
Comment 11 Sven Arvidsson 2010-09-12 14:13:01 UTC
Created attachment 38654 [details]
Missing flag texture (r300g vs llvmpipe)
Comment 12 Pavel Ondračka 2010-09-24 12:09:53 UTC
Hi, after a LOT more testing it seems there isn't any regression. 
It works here OK with texture filtering set to none, which was probably the reason why it worker before... Sven can you confirm this?
Comment 13 Sven Arvidsson 2010-09-24 12:14:54 UTC
(In reply to comment #12)
> Hi, after a LOT more testing it seems there isn't any regression. 
> It works here OK with texture filtering set to none, which was probably the
> reason why it worker before... Sven can you confirm this?

Confirmed. Great to have this figured out! :)
Comment 14 Marek Olšák 2011-02-10 17:41:14 UTC
Is this issue still present with the current Mesa master branch?
Comment 15 Sven Arvidsson 2011-02-11 10:09:09 UTC
(In reply to comment #14)
> Is this issue still present with the current Mesa master branch?

No change with git master 6ed0f2ac112d22278cf051c2cee9c2199a9025ea
Comment 16 Bruno Jacquet (Xaapyks) 2011-02-28 13:16:13 UTC
Hi,

Just to let know that one can actually check the issue even if you don't have a heroes of newerth account.
Just get the client from http://www.heroesofnewerth.com/download.php . The S2 logo is the first one appearing and you can see the menu bar at the top even when not logged in.
Comment 17 Marek Olšák 2011-06-08 19:26:46 UTC
Fixed by da8b4c07986e202b0596b729a5eec31c9aec5fcc.

The S2 logo and the main menu is rendered correctly now. I haven't tried to enter the game though.


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.