Bug 63979

Summary: s3tc not working with radeonsi driver
Product: Mesa Reporter: Alexander von Gluck <kallisti5>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Alexander von Gluck 2013-04-26 21:55:40 UTC
s3tc doesn't work when using the radeonsi driver.

Example:

kallisti5@eris ~ :) $ find /usr/lib -name "radeonsi*"
/usr/lib/xorg/modules/dri/radeonsi_dri.so

kallisti5@eris ~ :) $ glxinfo | grep renderer
OpenGL renderer string: Gallium 0.4 on AMD TAHITI

No EXT_texture_compress (aka s3tc)
kallisti5@eris ~ :) $ glxinfo | grep EXT_texture_compress

Move radeonsi driver somewhere else forcing fallback to swpipe:

kallisti5@eris ~ :( $ sudo mv /usr/lib/xorg/modules/dri/radeonsi_dri.so /tmp/

Now using llvmpipe:
kallisti5@eris ~ :) $ glxinfo | grep renderer
libGL error: failed to load driver: radeonsi
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.3, 128 bits)

s3tc now working:
kallisti5@eris ~ :) $ glxinfo | grep EXT_texture_compress
libGL error: failed to load driver: radeonsi
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
    GL_EXT_texture_array, GL_EXT_texture_compression_dxt1, 
    GL_EXT_texture_compression_latc, GL_EXT_texture_compression_rgtc, 
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map, 
kallisti5@eris ~ :) $
Comment 1 Jerome Glisse 2013-04-26 22:32:16 UTC
3.10 kernel + mesa git + libdrm recent enough ?
Comment 2 Alexander von Gluck 2013-04-27 02:20:13 UTC
airlied mentioned enabling colortiling.. no change.

I'm using Linux 3.9rc7 + the latest git libdrm + mesa.

3.10 isn't tagged in any way yet...
Comment 3 Jerome Glisse 2013-04-27 04:30:14 UTC
You need what's gonna be 3.10, ie Alex next tree and set ColorTiling and ColorTiling2D option in xorg.conf
Comment 4 Alex Deucher 2013-04-27 22:04:51 UTC
Grab Dave's drm-next tree:
http://cgit.freedesktop.org/~airlied/linux/log/?h=drm-next
Comment 5 Jerome Glisse 2013-05-07 20:35:55 UTC
Closing works with what gonna be 3.10

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.