util: Remove size information from child allocations
authorCaio Oliveira <caio.oliveira@intel.com>
Mon, 18 Sep 2023 09:45:40 +0000 (02:45 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 17:26:17 +0000 (17:26 +0000)
commitc415da3dfc3de687f20173f90c7420eaf218c638
tree8986ea2a85848d303cb6281acc42dca99e560b1c
parent8fc130783b220c2d94f4960a7613615ca4c75091
util: Remove size information from child allocations

With linear_realloc() gone, there's no code that reads the size
in linear_size_chunk struct, so it can be removed.  This removes
the 8-byte overhead per child allocation and simplifies the
allocation code.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25280>
src/util/ralloc.c