Bug 25159

Summary: Using s3tc causes the application to crash, or display corrupt data with git r600 driver
Product: DRI Reporter: Phil Armstrong <phil>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Phil Armstrong 2009-11-18 03:36:54 UTC
Using the git HEAD drm-radeon-testing merged with 2.6.32-rc7, git mesa and xf86-radeon-driver (if it's relevant), I get either corrupt display or application crashes if I turn on s3tc texture compression.

I'm aware that S3tc may not be supported in the radeon git driver, which is fine, but in that case it should turn it off, not crash :)

I've actually had this problem for a while, but presumed it was simply that there was something odd about my hardware that wasn't supported yet, but happened to try turning off S3tc with driconf yesterday. The behaviour was the same with a non KMS drm (just using the drm kernel modules from the drm-adg5f git repository compiled against a stock Debian 2.6.3[01] kernel) except that earlier releases resulted in corrupt textures on the screen menu from quake3, followed by a crash at round start instead of the crash at startup that the current checkout gives.

Hardware:
 01:00.0 VGA compatible controller: ATI Technologies Inc RV730XT [Radeon HD 4670]

Behaviour: With S3tc turned on, quake3 crashes on startup with a sig11, openarena crashes & has to be killed from a console. Penumbra runs but displays just a single snow texture on the screen in the game.

source checkouts:
Mesa d3a37d93aba86ebca697169a31d88c3ef0ce34b9
xf86-video-ati 0c4710c67a2fee2061fc3da43c9f908585693cfa
drm (for libdrm): c20706ffe56cc658a4814f89e391c14f6065ec57
drm-radeon-testing: 984d1f3cd3308d176d6d14588836a87c94b340da

I'm using the libtxc_dxtn.so which ships with Debian unstable: it used to work find with the old r300 driver on my old hardware, but hasn't been used for a bit.

The simplest solution is presumably to just forcible disable S3tc in the r600 driver, although it would be nice to have the old r300 style code back (turn on the extension, but use the external library for the actual texture compression so that there are no patent issues for mesa).

cheers, Phil
Comment 1 Alex Deucher 2009-11-18 07:55:20 UTC

*** This bug has been marked as a duplicate of bug 24047 ***

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.