Draft: replace zlib with zlib-ng
What does this MR do and why?
zlib-ng can work in two modes:
- as a library aside of zlib, using prefix
zng_
(as I do in this MR) - as a direct ABI compatible replacement replacing zlib (which would get us into same troubles as using more function in more recent zlib)
I would say our main issue is zlib-ng is not yet packaged for all distros (thou it's pretty simple to do).
TODO: fix wrap
which doesn't work as expected (while system-wide install works perfectly).
replace zlib with zlib-ng
Main reason: performance. Not measured against Mesa, but zlib lacks
assembly performance optimization.
Side effect of this migration is also avoiding apps shipping old custom
zlib, which breaks Mesa3D when we start using "modern" zlib features.
See: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28233
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9194
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9203
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9204
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Edited by David Heidelberg