util: fix gc_alloc_size alignment
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 7 Jun 2023 11:04:49 +0000 (12:04 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 18:15:13 +0000 (18:15 +0000)
commit928f31a24a83524ea696a52690e4479804c2381e
tree7e5da77f0375592f9719e5a5db4c07e9c7035063
parent90b8666ff2f73e691ff34ffa87962a0922950b7d
util: fix gc_alloc_size alignment

This was only aligning the gc_block_header. The returned pointer could be
incorrectly aligned.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Fixes: 69a9b343e8d ("util: add freelist allocator with mark/sweep")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9166
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23501>
src/util/ralloc.c