util: Remove usages of linear_realloc()
authorCaio Oliveira <caio.oliveira@intel.com>
Mon, 18 Sep 2023 09:19:21 +0000 (02:19 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 17:26:17 +0000 (17:26 +0000)
commit1486742b26943c65f21867969309cbc970d363dd
treeffaff42e207d24f677427396257eb214e83cf1c4
parent63ab9855114ebde337e7ea99e1a93659717339b7
util: Remove usages of linear_realloc()

Note that for linear allocator, the realloc will always
allocate new memory.  In both cases that realloc was used,
the existing size was known, so we can just allocate
and do the copy ourselves.

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