Following the open source Radeon Raytracing Analyzer, AMD GPUOpen team this week again open source Brotli-G project. Brotli-G is based on open source GPU tools that can be used to compress and decompress Brotli.
Brotli is currently mainly used to compress data such as network assets. AMD engineers decided to open source Brotli-G to speed up compression/decompression on the GPU.
To allow GPU-accelerated Brotli compression and decompression, the AMD engineering team modified Brotli’s bitstream format. Brotli-G allows parallel Huffman substreams, limits the size of compressed blocks, and other simplified bitstream formats to improve GPU performance.
Brotli-G is compiled for Microsoft HLSL shader purposes, allowing use with any graphics card, not just AMD’s graphics card lineup. AMD released the Brotli-G SDK under the MIT license. The Brotli-G SDK includes implementations for CPU and GPU.