1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

S2TC: A Possible Workaround For The S3TC Patent Situation

Michael Larabel

Published on 19 July 2011
Written by Michael Larabel
Page 1 of 1 - 109 Comments

While S3 Texture Compression (S3TC) is widely used by many games and applications since its inclusion into OpenGL 1.3 and Microsoft DirectX 6.0, these lossy texture compression algorithms have not been implemented in the open-source Linux graphics drivers. This lack of open-source support is due to S3 Graphics holding the patent rights to this technology that they actively license to major hardware vendors. There long has been an external library that can be loaded and will work with most Mesa / Gallium3D drivers for advertising S3TC support, but it's not found by default and it's not included in leading Linux distributions due to these legal fears. There may now be a new solution for the S3TC Linux problem thanks to the advent of a new (and simpler) texture compression algorithm that can serve as a drop-in replacement.

In the past, there have been individuals that have chimed in with their own thoughts on how to workaround the S3TC patent situation for open-source drivers, but none of them have been viable in legal terms. This new possible "solution" is a brand new texture compression algorithm that is simpler than S3TC and should not be infringing upon the S3 Texture Compression intellectual property. This new work comes courtesy of the open-source developers working on the Xonotic (formerly Nexuiz) game.

Xonotic heavily depends upon texture compression and so two of the developers, Maik Merten and Rudolf Polzer, set out to do some experiments to try to come up with a free software texture compression experiment. They thought about developing their own offline texture compressor, but in the end they came up with a simple texture compression scheme that uses two colors per 4x4 pixel block (S3TC and others use two reference colors and interpolate two extra colors in-between). They have dubbed this S2TC for "Super Simple Texture Compression." This simpler scheme is "a subset of the S3TC texture compression scheme [that's] widely used." The difference is that there is no interpolation between colors and more restricted usage of the bit-stream format since the encoder is also designed to be simpler and faster. Due to these changes, the quality of S2TC is not as great as S3TC, but Maik Merten says the quality is acceptable in many cases.

Since S2TC omits key elements of the S3TC texture compression method (e.g. quantization is not done in the block encoder but within the pre-processor, no derived colors, etc), they believe -- and based upon the input of others -- that this new method is not stepping on the S3TC patent. Without the legal team of a large corporation, they are not 100% certain that the legal situation of this being a low-quality free replacement to S3TC is not certain, but they hope to see the reaction of Mesa drivers to this new development. With S2TC being a sub-set of S3TC, all modern graphics cards that can compress S3TC should also be able to support Super Simple Texture Compression in the hardware.

On this web-page they have screenshots showing off the different compression situations from the source image, using the ATI/AMD Compressonator, NVIDIA's nvcompress, the libtcx_dxtn solution for S3TC on open-source, and then the various S2TC modes. The Xonotic-S2TC developers acknowledge the quality is not as good as S3TC, but it is an open-source solution and is at least better than black textures (what happens usually when S3TC support is required by the OpenGL game/application but there is no driver support). The developers state, "A good S2TC compressor is in quality about equivalent to a bad S3TC compressor." The below example is of Xonotic with S2TC.

Hosted on GitHub is the reference S2TC implementation with an offline encoder and decoder. There is also a drop-in replacement for libtxc_dxtn (the external Mesa library for normally loading S3TC support). The Wiki page also contains descriptions of the algorithm and data format. They have also written a whitepaper on the Super Simple Texture Compression scheme.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. NVIDIA GeForce GTX 970 Offers Great Linux Performance
  2. CompuLab Intense-PC2: An Excellent, Fanless, Mini PC Powered By Intel's i7 Haswell
  3. From The Atom 330 To Haswell ULT: Intel Linux Performance Benchmarks
  4. AMD Radeon R9 285 Tonga Performance On Linux
Latest Linux Articles
  1. AMD Moves Forward With Unified Linux Driver Strategy, New Kernel Driver
  2. MSI: Update Your BIOS From The Linux Desktop
  3. NVIDIA vs. AMD 2D Linux Drivers: Catalyst Is Getting Quite Good At 2D
  4. 15-Way GPU Comparison With Mesa 10.3 + Linux 3.17
Latest Linux News
  1. Phoenix Is Trying To Be An Open Version Of Apple's Swift
  2. Linux 3.19 To Have Skylake Graphics, PPGTT Enablement
  3. Ubuntu 16.04 Might Be The Distribution's Last 32-Bit Release
  4. Imagination Releases Full ISA Documentation For PowerVR Rogue GPUs
  5. Features GNOME Developers Want In The Linux Kernel
  6. GTK+ Gains Experimental Overlay Scrollbars
  7. Phoronix Test Suite 5.4 M3 Is Another Hearty Update
  8. GParted 0.20 Improves Btrfs Support
  9. EXT4 In Linux 3.18 Has Clean-ups, Bug Fixes
  10. Emacs 24.4 Has Built-In Web Browser, Improved Multi-Monitor Support
Latest Forum Discussions
  1. Proof that strlcpy is un-needed
  2. Users/Developers Threatening Fork Of Debian GNU/Linux
  3. xbox one tv tuner
  4. HOPE: The Ease Of Python With The Speed Of C++
  5. Bye bye BSD, Hello Linux: A Sys Admin's Story
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  7. NVIDIA Presents Its Driver Plans To Support Mir/Wayland & KMS On Linux
  8. AMD Is Restructuring Again, Losing 7% Of Employees