util: Fix bookkeeping of linear node sizes
authorCaio Oliveira <caio.oliveira@intel.com>
Mon, 25 Sep 2023 21:46:49 +0000 (14:46 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 26 Sep 2023 02:53:27 +0000 (02:53 +0000)
commitd27b135b3aa15b45988cf292b1e146fbf02350cf
treee0a999a15997e687bcf6ef933425987ced340a44
parent6d00c2f78cf651ef156c287368783ac6d0c40d50
util: Fix bookkeeping of linear node sizes

When creating a new node, we were clobbering the original size
requested, and use that as offset, so the node would always be full.

Fixes: 591db9a9a54 ("util: Remove per-buffer header in linear alloc for release mode")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25382>
src/util/ralloc.c