Skip to content

compress register allocation sets

Dylan Baker requested to merge dbaker/mesa:ibc-ra-sets-zstd into ibc

This series uses either zlib or zstd to compress the Register Allocation sets that IBC generates at build time, and store them compressed in the read only data section of the elf binary. I've done some testing of the zlib version, but only touch testing of the zstd (it seems to work, and zstd is better at detecting errors in decompression than zlib is from an API point of view).

It uses objcopy to take the compressed data and shove it into a .o file that we later link into the final library.

There are two things about this series I'm not sure about.

  1. it bails when anything goes wrong
  2. it creates several new externed symbols, this is a result of using objcopy

Merge request reports

Loading